[PATCH 3.18 030/144] perf/ring_buffer: Prevent concurent ring buffer access