Remove locale.getdefaultlocale() and locale.resetlocale() functions deprecated in Python 3.11: see issue #90817 for the rationale and the deprecation. <!-- gh-linked-prs --> ### Linked PRs * gh-104784 * gh-105381 * gh-105401 <!-- /gh-linked-prs -->