Replaces SimpleLock with MonitorLock