set t->next to be null in thread_create, fixes #8