X11: moved XOpenDisplay into X11Thread, support RAPICORN=x11sync
X11: moved XOpenDisplay into X11Thread, support RAPICORN=x11sync

tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn