优化ThreadLocal获取Locale的处理逻辑

Signed-off-by: xautlx <xautlx@hotmail.com>