[NFCI] RunBenchmarks(): extract FlushStreams()/Report() functions
[NFCI] RunBenchmarks(): extract FlushStreams()/Report() functions

Based on original implementation by Hai Huang @haih-g in
https://github.com/google/benchmark/pull/1105

google/benchmark,google/benchmark,google/benchmark