GetMacosAlignedVersion() fails for ASan-ified launchd because the
sanitizer initialization code runs before sysctl has been setup by
launchd. In this situation, sysctl kern.osproductversion returns a
non-empty string that does not match our expectations of a
well-formatted version string.
Retrieving the kernel version (via sysctl kern.osrelease) still works,
so we can use it to add a fallback for this corner case.
Maybe we should do the internal_strlen(vers) < 3 check just after the call to internal_sysctlbyname. Then if it fails set res to 1 so that we then take the fallback path that relies on the kernel version.
Although, we'd have to adapt the fallback path to support macOS 11... which makes things complicated.