rem: delete_sem_etc(id, 0);
add: delete_sem(id);
context: sem_delete_owned_sems(team_id owner){	int state;	int i;	int count = 0;	if (owner < 0)		return B_BAD_TEAM_ID;	state = disable_interrupts();	GRAB_SEM_LIST_LOCK();	for (i = 0; i < MAX_SEMS; i++) {		if (gSems[i].id != -1 && gSems[i].owner == owner) {			sem_id id = gSems[i].id;			RELEASE_SEM_LIST_LOCK();			restore_interrupts(state);			delete_sem_etc(id, 0);			count++;			state = disable_interrupts();			GRAB_SEM_LIST_LOCK();		}	}	RELEASE_SEM_LIST_LOCK();	restore_interrupts(state);	return count;}