define Kernel#set_trace_func as a module function.