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

Also part of bug 1027232
Merge pull request #22524 from hfiguiere/v2.0

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