Improve error reporting for PAM routines
Improve error reporting for PAM routines

Report errors from pam_end, and use pam_strerror to get the error message
when pam_start or pam_end fails.

Set pamh to NULL after calling pam_end.

Miciah/slock-pam