Fixed wrong conditions
Fix condition in mutexCreate()