Refs #10456. Fix race condition
Refs #10456. Use Poco::RWLock in place of mutex