first pass at fixing unix mutexes