[PATCH v2 1/2] selftests/harness: Move test child waiting logic