MULE-7194 - Improper handling of UnknownHostException in Outbound TCP

Besides the changes required to the issue itself, I changed TcpSocketKeyTestCase from FunctionalTestCase to a proper unit test.