Fix deadlock in sig_pri when hanging up.