Possible deadlock in session_pool fixed