Reduce number of ShareMutex classes

Any comments?