[JENKINS-45256] The reload-configuration CLI command ought to wait until the reload is finished (cherry picked from commit cc1615b9)