Fix Console write race condition

If a caller tries to send data immediately after getting their
Console object, they can trigger a problem since the session is not
yet established.  Correct this by spinning in send_payload until
session is either established or fails.

Change-Id: Ia3a2582563d5385212202c036c0716a3cf36b80c