Enable thread protection on MacOS X as well