Workaround for Mono bug with IPv4 address when IPv6 is supported

Some versions of Mono, such as the one used by Unity up to 4.5.x, raise
a SocketException when attempting to connect to a IPv4 address on
platforms that support IPv6.  This change makes SocketFrameHandler retry
the connection using AddressFamily.InterNetwork if that happens.