HPCC-10910 Ensure abort is checked before spawning a child

Replaces https://github.com/hpcc-systems/HPCC-Platform/pull/5460