gh-98999: Raise ValueError in _pyio on closed buffers
#99009
+33
−12
Merged