implemented Controller::listDevices using mutex, but this causes a WinRT exception