Reapply "[lit] Support more ulimit options"
This reverts commit 57722ddce172f569f04a50b76ccb2fc524adf8f5.
This caused some MacOS test failures due to resource there having issues
with RLIMIT_STACK. The underlying syscall fails with EINVAL despite
the values being correct. For now, move this to the non Darwin test.