Move Darwin spawn() implementation into the helper process

This means that spawn() now works regardless of whether the application
has the appropriate entitlements.