LPS-41906 A more robust to force gc for FinalizeManagerTest