implementation of all mutex functions. compiling fine.