Retry up to USB_RETRY_MAX times to clear a halt condition before failing.