Fix lost message problem - if multiple messages are queued before the connection is formed, we lost all but the first one. Ensure that all messages get properly queued prior to completing the connection

cmr=v1.7.4:reviewer=jsquyres:subject=Fix lost message problem