usbutils avoid leaving devlock locked when thread cancelled