ctest: Simplify progress summary line logic Avoid relying on separate buffering of `cout` and `printf`.