Problem with address already in use in udp tests, see #3084

* Subsequent bind to dynamic port might result in same port if
  the socket is closed inbetween