Mutex manager now working properly. Threading no longer causes seg faults.