dssync keytab: refactor adding entry to keytab_context out into new function