r21887: Fix annoying bug where in a pam_close_session (or a pam_setcred with the