[git] Lock and unlock local files in git repositories.