Wrap PerfEventSource usage in IsEnabled checks (dotnet/coreclr#27177)
After the recent start/stop event refactoring, this is the only use of PerfEventSource that is not wrapped in a IsEnabled call.
Tools like IL Linker are able to strip EventSource usage to make the app smaller and the way they do it is by replacing IsEnabled to always return false and making Write methods always throw. If we don't wrap EventSource usage in IsEnabled checks, this results in a broken app.
Commit migrated from https://github.com/dotnet/coreclr/commit/
2d636cdcb90b0e880b45126b4f65cb815f3872f4