lock getUsbDevice for mac os