The current macro guard for TLS related symbols is not enough, only if !defined(CONFIG_DISABLE_PTHREAD) and CONFIG_TLS_NELEM > 0, the TLS related symbols will enabled. So if CONFIG_DISABLE_PTHREAD is not defined, but TLS is disabled, the reference to TLS related symbols will cause build error (undefined reference to xxx). Signed-off-by: Huang Qi <huangqi3@xiaomi.com>