Add missing #ifndef _LIBCPP_NO_EXCEPTIONS around throw in include/thread.