trace: fix deadlock of current code when tracer is enabled

Mark functions that are needed by logger as notrace.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>