[PATCH 4.9 027/171] perf/ring_buffer: Prevent concurent ring buffer access