add lock file for read/write files