Add __has_feature check for thread_local keyword support.