[PATCH 4.14 19/45] perf/ring_buffer: Fix exposing a temporarily decreased data_head