update ThreadLocal