I'm curious why this change was made. The `repositoryStatistics` should be thread safe, so the lock should only be needed to update `changesReceivedAndDispatched`.