[PATCH 6/6] tracing/ring-buffer: Fix wait_on_pipe() race