Disable thread-related tests on OSX due to the bug on gcc-4.8.1