Fix ROCm XLA profiling code
Fix ROCm XLA profiling code

- Add missing dependencies to make the layering check happy
- Add missing cast to function call to make latest clang happy
- Add missing mutex_lock to fix thread safety analysis error
- Replace flat_hash_map by a node_hash_map since the ValueType is not moveable or copyable.
