[usb] Make iothread termination reliable