fix crash on double pam handle free

fixes sddm/sddm#145
Merge pull request #146 from MartinBriza/pamcrash

fix crash on double pam handle free