Get file and lock it