BUG Fix access to protected Session::current_session()
Fixes #3144