s3/pam: move variable declaration into belonging ifdef section