Major changes in CLMutex and new unit test