usb transport: straighten out locking for BulkWriterThread

BulkWriterThread had a mutex that was being unlocked while it was
already unlocked. Also, the main thread was busy-looping while
waiting for the mutex. Removed the mutex, replaced the synchronization
logic, and commented what's going on.