SI-8976 assertCollectables for many samples

Instead of waiting for an object to be collected, while
generating garbage, produce more sample objects amongst
the trash and be satisfied if any of them is collected.
SI-8946 Test for retained threads

Use `assertCollectables` to test that threads which use
reflection can be garbage collected.