[PATCH 5.15 120/183] ring-buffer: Avoid softlockup in ring_buffer_resize()