rem: static int _thread_kill_thread(thread_id id, bool wait_on)
add: _thread_kill_thread(thread_id id, bool wait_on)
context: static int _thread_kill_thread(thread_id id, bool wait_on){	int state;	struct thread *t;	int rc;//	dprintf("_thread_kill_thread: id %d, wait_on %d\n", id, wait_on);	state = disable_interrupts();	GRAB_THREAD_LOCK();	t = thread_get_thread_struct_locked(id);	if(t != NULL) {		if(t->team == team_get_kernel_team()) {			// can't touch this			rc = EPERM;		} else {			deliver_signal(t, SIG_KILL);			rc = B_NO_ERROR;			if(t->id == thread_get_current_thread()->id)				wait_on = false; // can't wait on ourself		}	} else {		rc = ERR_INVALID_HANDLE;	}	RELEASE_THREAD_LOCK();	restore_interrupts(state);	if(rc < 0)		return rc;	if(wait_on)		thread_wait_on_thread(id, NULL);	return rc;}