Protect session::run() from concurrent calls.