x86/perf/amd: Resolve race condition when disabling PMC