tracing: branch tracer, fix writing to trace/trace_options