Lock the “inode” after waiting if necessary. This procedure is called by “readp” (7768) and “writep” (7815).