return the file locked in lock_file() to keep a reference