Lock file changes