gh-143880: Fix data race in `functools.partial` in free threading build
The assignment to `pto->vectorcall` isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.
--- /dev/null
+Fix data race in :func:`functools.partial` in the :term:`free threading` build.
PyObject *const *args, size_t nargsf,
PyObject *kwnames)
{
+#ifndef Py_GIL_DISABLED
pto->vectorcall = NULL;
+#endif
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
return _PyObject_MakeTpCall(tstate, (PyObject *)pto, args, nargs, kwnames);
}