Reduce number of ShareMutex classes

@lznuaa @ch3cooli 
Any comments?