fts: use O_NOFOLLOW to avoid race condition when opening a directory