Fix race when exporting a buffer from a :class:`memoryview` object on the :term:`free-threaded <free threading>` build.