r19980: Implement pam account stack checks when obey pam restrictions is true.