xfreerdp: stabilize asynchronous X11 event handling