fork_worker: guard more setup code with eval