Change Mutex to RwLock in ChainMonitor