Multithread cleanup TkCloner

Mark function as thread safe to eliminate
a warning from the static analyzer.