explicitly set thread stack size to 2MB

The default thread stack size on Mac OS X 10.9 is 512KB, which is too small, at
least for mtsync.  On OS X, the sweet spot seems to be 779KB, but 2MB should be
safe.