Fix setting up fake EntityCache/Session
With the CommandBuffer and SessionThread changes, the ChangeNtfDepsFactory
needs a better interface in order for non-friend classes of Session to be
able to inject their own (fake) Connections into the thread.