[inductor] codegen dynamic shapes tests: reset inductor metrics (#106481)
A bunch of the tests are getting skipped/xfailed because of generated_kernel_count checks. In other tests, inductor metrics automatically get reset in the common() function, so we should do this in the test_torchinductor_codegen_dynamic_shapes tests as well.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106481
Approved by: https://github.com/eellison