[PATCH 5.10 131/575] ring-buffer: Protect ring_buffer_reset() from reentrancy