sysctl: handle error writing UINT_MAX to u32 fields