function thread_free

[edit]
static void thread_free(rb_thread_t th)