Fix storing 'safe' flag on a message. The key for session value should include
folder name. A message with the same UID may exist in another folder.