rem: OPENNAP->searches = list_remove(OPENNAP->searches, search);
context: uint32_t opn_search_unref(OpnSearch *search){	if (!search)		return 0;	if (!--search->ref) {		OPENNAP->searches = list_remove(OPENNAP->searches, search);		opn_search_free(search);		return 0;	} else		return search->ref;}