We should apply the same fix as https://github.com/rust-lang/rust/pull/74526/ to our RefCell wrapper.