Use an RWMutex instead of a Mutex in PassRegistry.