Replace external thread "once" with an internal implementation