ctccid/usb_device.c:
Called libusb_reset_device immediately after opening (fixes problem with old kernel 2.6.21 on ARM).
Atomic operations for ref counting (not really needed because all functions should be synchronized).