exterr: make SET_ERRORX() macros an expression evaluating to the errno
And move the actual td_kexterr fill code into the function, saving some
text.
Suggested and reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D50836