test_tls: Replace tight loop with `select.select`
test_tls: Replace tight loop with `select.select`

Without `select`, the server was blocking on `recv` at
the end of the tests.  This forced us to call `terminate`
on the process.  This is not necessary anymore.

Synss/python-mbedtls,Synss/python-mbedtls