[core] fork() optimization is disabled when the process has traps