res_pjsip_session: Add additional checks for delaying session refreshes.