Fix potential reentrancy problems in chan_sip.