Test with directory fd opened with O_PATH

In Linux, this option indicates that the file descriptor just
represents a path in the filesystem, not a full open file. Such an
FD can be used as the dfd for *at(2) operations, dup(2), fchdir(2),
fstat(2) and not much else.