Session storage lock fix