Refactor code to print pgbench progress reports.
threadRun() function is very long and deeply-nested. Extract the code to
print progress reports to a separate function, to make it slightly easier
to read.
Author: Fabien Coelho
Discussion: https://www.postgresql.org/message-id/alpine.DEB.2.21.
1903101225270.17271%40lancre