libcommon|GameSession: Discard useless map states if not needed by the game progression

Also fixed a potential write-access issue when deleting a SavedSession.