The API on NetBSD and Illumos sucks and can unpark spuriously (well, it can't, but signals cause an indistinguishable unblock, and libpthread really likes to leave unparks pending). As such, on these targets only, we need to pass around a flag to track whether a thread is "actually" being unparked.
const need_unpark_flag = switch (native_os)
const need_unpark_flag = switch (native_os) {
.netbsd, .illumos => true,
else => false,
}