synchronize pthread wrappers with libhybris code