winex11: Use pthread for xrender locking.