Fixes a race condition by adding a newly authenticated session into the core routing table before removing it from the list of pre-authentication sessions.