nsswitch: fix a segfault in the krb5 locator plugin