Implement an option to disable use of vfork().

Fixes #5583