HPCC-9860 - Avoid holding session crit whilst destroying subs

A destructing subscription can involve other locks/crits.
The session manager should ensure the session crit is released
before their final destruction. Otherwise deadlock can ensure
if another thread is involved in e.g. locking and queries the
session manager.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>