Relax dialog checking in get_sip_pvt_byid_locked so it works when the dialog is forked.