Better thread handling in ForkSupport