Utilities/Sphinx: Fix cmake domain document removal with python3

In the domain clear_doc method, avoid removing entries from a dictionary
while iterating over it.  Instead accumulate a set of entries to remove
at the end.
Merge topic 'sphinx-python3' into next

d55671ad Utilities/Sphinx: Fix cmake domain document removal with python3