HPCC-12420 eclcc stdout/stderr pipes get closed prematurely

Combination of recursive call (DBGLOG) and unexpected response from ioctl on OSX.

Fixes HPCC-12420

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>