Add *.lock to .gitignore.