bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)

(cherry picked from commit 7431448b817d3bf87f71661cf8f3d537807ab2e2)

Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
2 files changed