Set static tuple reference count using Py_SET_REFCNT() rather than using Py_REFCNT().
Define Py_SET_REFCNT() for Python 3.8 and older in python-compat.h.
On Python 3.10, Py_REFCNT() can no longer be used as an l-value to set an object reference count: Py_SET_REFCNT() must be used for that. See https://bugs.python.org/issue39573 for more details.