api: add (missing) refresh_stat_counters() endpoint
so we do not need special cases in tests, at least.