This reverts commit 7529690df3. I tried to put manually add threading protection to GHOST around Xlib calls but that did not fix the crashes. So reverting that for now despite the performance implication on some system.
7529690df3