Jacek Caban : winex11: Use pthread for settings locking.