Makes thread safe the Subscriptions class used in session.