D50139 changes the semantics of O_NAMEDATTR so
that a named attribute directory will be created if it
does not already exist. As such, an open(2) without
O_CREAT cannot be used to test to see if one exists.
This patch adds a new pathconf name _PC_HAS_NAMEDATTR,
which returns 1 if one or more named attributes are associated
with the file. A return of 0 means that there are none, so there
is no need to open(2) the named attribute directory.
This allows applications to avoid creating unnecessary named
attribute directories when the application only wishes to read
named attributes and not create them.
It is also useful for the NFSv4 server, so that it can reply with
a correct named_attr attribute.