util/ra: Only update q_total if the reg is not assigned