tracing/trace_stack: Cleanup for trace_lookup_stack()