cli: drop legacy `SafeConfigParser`

The old `SafeConfigParser` class has been deprecated since Python 3.2, and was
fully dropped in Python 3.11. See issue
[#45173](https://bugs.python.org/issue45173) on Python's bugtracker.

/cc @xavier_thompson who may ping anyone else if needed
3 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds