fix thread-local storage is not supported for the current target

Merged DanmeiChen requested to merge fix/fix_thread_local_error into master

Merge request reports