perf stat: Introduce reset_shadow_stats function