Avoid QXcbEventReader crash during library shutdown (bnc#879295).