security: refactor sip_sec_acquire_cred__gssapi()