[Process] Fix tests when pcntl is not available.