PR #13491: [ROCm] Fix profiler deadlock due to 3d7a4720b02e643faccd13f9a450213b5…
PR #13491: [ROCm] Fix profiler deadlock due to 3d7a4720b02e643faccd13f9a450213b5…

Imported from GitHub PR https://github.com/openxla/xla/pull/13491

…dfe17b7
Copybara import of the project:

--
5e584a13c226de0707dccf763501fccbf37dcc32 by Dragan Mladjenovic <Dragan.Mladjenovic@amd.com>:

[ROCm] Fix profiler deadlock due to 3d7a4720b02e643faccd13f9a450213b5dfe17b7

Merging this change closes #13491

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/13491 from ROCm:rocm_profiler_deadlock 5e584a13c226de0707dccf763501fccbf37dcc32
