Lock from the start of the file.