修改ThreadLock为ThreadLockT模板，并定义ThreadLockT和LockT为ThreadLock和Lock