Fix typo in MockRamDirectoryService name
Prevent modification or deletion of repositories while snapshots are running
Fix possible NPE in snapshot service if a shard doesn't have primary