fileutil: Add API to set xattrs of a filename relative to a dir fd

This is a Linux-specific way to work around the missing lsetxattrat().