The parent process can only be ptraced by 1 process once, to avoid the error we have to add mutex to synchronize the ptrace call. Signed-off-by: Eric Huang <jinhuieric.huang@amd.com> [ROCm/ROCR-Runtime commit: d3265234e9]
d3265234e9