Lock for git update on hook