[Reviewer: Alex] Fix valgrind-detected bug where session's timeout is accessed by pthread_cond_timedwait after session has been destroyed

Alex,

Please can you review my fix to this valgrind-detected bug?  Should be self-explanatory.  Tested under UT and briefly live-tested.

Matt