Set stack size rlimit.

Fixes #5659