auth: Unconditionally set pamh to NULL

Don't do it only in the successful case since the handle is
not useful afterwards and later calls might otherwise reuse the handle.

Also don't use the handle in the error path after pam_end.

Signed-off-by: Guido Günther <guido.gunther@puri.sm>
5 jobs for master in 10 minutes and 4 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #163160
librem5
build:native

00:02:27

 
  Test
passed #163162
librem5
test:smoke:one-output

00:02:56

passed #163163
librem5
test:smoke:two-outputs

00:02:54

passed #163161
librem5
unit-test:native

00:01:56

5.9%
 
  Package
passed #163164
librem5
package:deb

00:02:45