Fix session management for shared caches.

* Each participant now has a manager thread
* Each participant has a shared cache session

Refs issue #1176