Added cmake option DO_NOT_USE_MUTEX (default: OFF)
While Haiku and WINE do not support mutexes, this option is necessary for them.