Testing some refactoring to cleanup the threads on X11 to try and keep things close to the same on POSIX and Windows.