use freebsd's thr_self() and thr_kill() to get thread information