Commit beb5f8889de4f5491c831a4bd8824b9c514dbafc

Con Kolivas 2013-06-07T00:25:49

Protect all usb writes reads and unplugs with a mutex lock and check libusb release has succeeded before proceeding with a libusb close.