[PATCH 04/11] winex11: Use pthread for palette locking.