usb: move remote wakeup handling to common code