Fixed segmentation fault in ykcore_libusb.c

The older version of libusb backend had this bug and is currently unusable without this patch.