[ticket/12360] Fix duplicated creation of session when logging out the user

PHPBB3-12360