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

http://tracker.phpbb.com/browse/PHPBB3-12360