Bundled spidermonkey fails to build with python 3.12

Description:

"The vendored six and urllib3 needs to be updated to support python 3.12, a patch landed for sm-120 upstream.

https://phabricator.services.mozilla.com/rMOZILLACENTRAL47b8e4dba076af433fe0755cfc02497cdaa6f346

There might be a long tail of commits to cherry-pick first for this patch to apply."

Additional info:

Steps to reproduce:

  1. Try to build
  2. Error
/build/0ad/src/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py:838: SyntaxWarning: invalid escape sequence '\.'
  RE_MODULE = re.compile('^[a-zA-Z0-9_\.]+$')
Traceback (most recent call last):
  File "/build/0ad/src/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py", line 25, in <module>
    from mozbuild.configure import (
  File "/build/0ad/src/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py", line 13, in <module>
    from six.moves import builtins as __builtin__
ModuleNotFoundError: No module named 'six.moves'
ERROR: SpiderMonkey build failed
==> ERROR: A failure occurred in build().
    Aborting...
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information