repo mutexes: extern declaration of repoMutexes array has been moved to globals.h