Multithread cleanup TkCloner

Mark function as thread safe to eliminate
a warning from the static analyzer.
Merge pull request #3830 from wddgit/multithreadCleanupTkCloner

Multithreading -- Multithread cleanup TkCloner