Bug 1033402 - Wait for the available marionette socket. a=test-only

Also part of bug 1027232