**Describe the bug** I this this issue is causing this: https://github.com/PyO3/pyo3/discussions/2465 We are borrowing mutable references in too many places in the pyclass code. **To Reproduce** Use SessionContext from multiple threads. **Expected behavior** No Panics.