tests/tls/connection: let the kernel allocate ports

The connection test was trying to allocate ports itself, but wasn't
actually testing that it worked, so sometimes it didn't. Reorganize to
let the kernel bind to a random port instead.

https://bugzilla.gnome.org/show_bug.cgi?id=719728