ZookeeperBridge::StatusLocker: refactored to remove code duplication