[profiler] Add managed backtrace support to sampling mode for the signal-based impl.