Added simple init funtion for Mutex, no error checking.
Implemented Lock function.