lock input file