Remove ``locale.resetlocale()`` function deprecated in Python 3.11. Patch by Victor Stinner.