xlib: switch to c11 mutex functions