[PATCH 5.4 004/202] ring-buffer: Fix a race between readers and resize checks