make fork properly initialize the main thread in the child process