cosmetic changes in thread.c/h, removed thread_kill (never implemented function), and make _wait/_ret public, small tweak in test suite