modified priority for sema_elems in cond_wait