fix unlock unbalance in helper_adjust_prio