Fix mass thread initialization of sessions

There was a problem where the io thread could exist, but not yet
be ready.  Fix this by adding an iothreadready bool and a list of
events to fire when iothread is ready.

Change-Id: I4eb13e2210fa07bddbe717f56b12c736c99938dc