preserve localStorage for SIM logout (bug 1042381)

this is a port of https://github.com/mozilla/spartacus/pull/108