[Bug 510796] xorg-x11-libX11 with pthread isn't thread safe in xcb_lock.c