Add lock around managed ioloop starting