[runtime] Fix stack size detection on osx mavericks. Fixes #15890.
[runtime] Fix the osx mavericks stack size calculation in sgen too.