Bug 1033402 - waitForSocket() before connecting to marionette.

nit: `process.nextTick` is more idiomatic then `setTimeout(fn, 0)` in node (I know this was here before)