locktest: don't assume that F_OPEN should use O_RDWR