[PATCH 5.14 163/849] ring-buffer: Protect ring_buffer_reset() from reentrancy