[PATCH v3] ring-buffer: Prevent inconsistent operation on cpu_buffer->resize_disabled