[PATCH 4.14 15/37] ring-buffer: Fix race while reader and writer are on the same page