fixed thread issue in connection manager

Ignore-this: 5a96dd8391301e37fd441190b38f4948

connection manager would stall on receive if the tcp connect timed out, or if there
was no network connectivity. Primarily because the mutex was locked during the connect...

darcs-hash:20140205035802-c21fe-bdc0bdafa9586183165bf20c1e1263a5e99657d1