[libc] Add support for chown on platforms that don't define SYS_chown (#186167)

Some platforms don't define SYS_chown (like risc-v), so this PR adds a
fallback to calling SYS_fchownat.

GitOrigin-RevId: c7655664a2421816a5daa1704c4c729c28db76e3
3 files changed