multi_buffer: Reduce `RefCell::borrow_mut` calls to the bare minimum (#40522)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
27dcdb5841Lukas Wirth committed on 10/17/2025, 6:17:34 PM· committed by GitHubparent1fbe1e3
9 files changedLine totals unavailable