res_pjsip_refer: Fix occasional unexpected BYE sent after receiving a REFER.