Handle concurrent accesses to the same repo