ftrace: fix mutex unlock in trace output