codeintel: Add Lock to store
Created by: efritz
This PR adds an advisory lock mechanism to the codeintel store which will be used to ensure that only one service is updating the commit graph for a repository at a time.
This is part of a larger effort towards https://github.com/sourcegraph/sourcegraph/issues/12098.