usbcore: check usb device's state before sending a Set SEL control transfer