Replace jmutex with std::mutex
replace JMutexAutoLock with std::unique_lock<std::mutex>