Improve ktr(9) records in thread managment code.
Differential Revision: https://reviews.freebsd.org/D1464 Reviewed by: trasz