Added wrappers for mutex functions for use when POSIX thread functions are redefined