tests: Make release/GC tests stable on PyPy

Running gc.collect() multiple times is currently the best way to make sure the
object finalizers are executed by PyPy, according to fijal on #pypy.