MODE-2080 Implemented a JGroups based global locking mechanism and updated repository initialization to make use of it.