Put thread-fork-init inside a run-once guard