Fix deadlock in CreateProcess () if fork () fails. Fixes #11315.