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().
fileutils: Add gs_file_open_dir_fd_at()

This will be used in the OSTree checkout code, where we want to
mkdir() and then open it.