Ensure memory of unused object is released

- Execution can be really long, make sure we mark as early
as possible objects that can be released.
- Check if configuration make sense for suite, only target
preparers and tests are expected.

Test: local unit tests
Change-Id: I6bc890105a72357802d7f437c8349de5c9d6b155
(cherry picked from commit 4a2358626f3a523af4b58414472f1efa4e73c83d)
7 files changed