gc_sweep_all() cleans up sockets via the finaliser, but tests should cleanly free resources they use.
So that this tests works with mbedtls. Signed-off-by: Damien George <damien@micropython.org>