Bug 1033402 - waitForSocket() before connecting to marionette.

This is straight up duplication though. If you want to move `waitForAsync` out into a small helper module which both the client and driver use that would work for me?