tracing/branch-tracer: fix a trace recursion on branch tracer