Avoid a multi-threaded race condition if a session is shut down at the instant a CometActor long poll is beginning