Merge "Fixes concurrency issue in Session's toString"