protect TThread finalization callback execution