test: give more time to GC in test-shadow-realm-gc-*
When --node-builtin-modules-path is used, we read and create new strings for builtins in each realm which increases the memory usage. As a result GC may not be able to keep up with the allocation done in the loop in the test.
As a workaround, give GC a bit more time by waiting for a timer in the loop.