as3525v2-usb: only call wakeup_signal when a thread is actually waiting