Add lock thread