better fix for broken AbstractSocketAppenderTest

this is a slightly better fix for a broken test which got merged with https://github.com/qos-ch/logback/pull/193.