libc: add sysinfo() wrapper with UNAME_LEGACY support for SI_ARCHITECTURE