rem: _lwp_ids[(thethread->id-1)] = -1;
context: void __lwp_thread_close(lwp_cntrl *thethread){	void **value_ptr;	lwp_cntrl *p;	__lwp_setstate(thethread->cur_state,LWP_STATES_TRANSIENT);		if(!__lwp_threadqueue_extractproxy(thethread)) {		if(__lwp_wd_isactive(&thethread->timer))			__lwp_wd_remove(&thethread->timer);	}		__libc_delete_hook(_thr_executing,thethread);	value_ptr = (void**)thethread->wait.ret_arg;	while((p=__lwp_threadqueue_dequeue(&thethread->wait.join)))		*(void**)p->wait.ret_arg = value_ptr;		if(__lwp_thread_isallocatedfp(thethread))		__lwp_thread_deallocatefp();	_lwp_ids[(thethread->id-1)] = -1;	__lwp_stack_free(thethread);	free(thethread);}