Fix race condition in connecting inproc sockets
Merge pull request #1055 from hurtonm/master

Fix race condition in connecting inproc sockets