[PATCH 5.4 057/131] ring-buffer: Avoid softlockup in ring_buffer_resize()