open/close file with lock…