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 branch 'sphinx-python3' into release