trace: add flag tracing for forbiding recursive tracing

recursive tracing checking is needed for ktap, like kmem related
tracepoint, check scripts/kmem.ktap

Signed-off-by: Jovi Zhang <bookjovi@gmail.com>