remove duplicate calls to Thread.current.set_trace_func().