security: simplify mechanism code in SSPI