SDLEvents: add a way to lock the event loop, fix thread destruction
Allow to populate a Mapping with an item from InputDevice::enumerateDevices

Also add an inputEventReceived signal on InputDevice, to be mostly used for
dynamic configuration of a mapping on the UI