Refactored to queue up pending devices in the hotplug transport. This then only uses a critical section
for pushing and popping from the queue, hopefully avoiding deadlock issues that were caused by other
libusb synchronous calls triggering the event system.