Core: fix bug in libusb_has_capability()