init lock on thread.ctor