minor logic simplification in get_sip_pvt_byid_locked()