cpp/thread/shared mutex/lock