nsswitch: fix use-after-free causing segfault in _pam_delete_cred