JCR-4078: occasional test failure in GarbageCollectorTest.testSimultaneousRunGC Improve synchronization.