More opportunities to use RLock instead of Lock.