Improve accept exception handling in unit tests (CORALCOOL-3082)
Socket accept() method raises NonFatalSocketException error when there are no connection requests pending. Unit tests call connect() and accept() in the same thread and they expect that exception is not raised. Apparently that is not always true and in some conditions exception is still raised. Correct thing in this case is to retry accept() call, this patch adds this logic to unit tests.