Adapted ccThreadMutexCreate to work on linux