Resolve unresolved InetSocketAddresses on non-io thread

Resolves #23.