Mac logout fix

Fixes issues with logout in mac token caching. TFSID 1720880