[Profiler] Prepare for change to unique_ptr in Kineto
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79621
Move profiler to use compat bridge methods on libkineto::CpuTraceBuffer. Note that there is a specific order in which these changes must land:
First, the change adding the methods to Kineto must land.
Second, the change updating the pinned version of Kineto in PyTorch must land.
Third, this change must land AND BE COMMITTED TO FBCODE.
Fourth, the change to change kineto to use unique_ptr must land.
And finally, the pinned commit in pytorch/third_party must be updated again.
Only after all of these can the profiler start to rely on kineto using a unique_ptr under the hood.
Differential Revision: [D36679293](https://our.internmc.facebook.com/intern/diff/D36679293/)
Approved by: https://github.com/aaronenyeshi