test_runner: finish build phase before running tests
Please ignore the first commit. That is https://github.com/nodejs/node/pull/54387, which is currently blocked from landing because the macOS machine in the CI has a full disk.
This commit updates the test runner to wait for suites to finish building before starting any tests. This is necessary when test filtering is enabled, as suites may transition from filtered to not filtered depending on what is inside of them.
Fixes: https://github.com/nodejs/node/issues/54084 Fixes: https://github.com/nodejs/node/issues/54154