Adding lock files to commit