tracing: Introduce trace_buffer_{lock_reserve,unlock_commit}