gensec: Fix a memory corruption in gensec_use_kerberos_mechs