Fixed deadlock when calling updateDeviceList from main thread.