Although these sysctl calls report generic system errors rather than network errors, NetworkErrorString() is identical to SysErrorString() on POSIX systems, so this does not change behavior. It allows removing #include <util/syserror.h>, which was only needed by __APPLE__ code and would otherwise require an #ifdef guard to silence an IWYU unused-include warning on other platforms.
Related to #34995.