[PATCH v2 1/2] open: make RESOLVE_CACHED correctly test for O_TMPFILE