add a check for MRI Ruby thread stack size