Adding X11 threads and mutexes using POSIX threads.