test Thread lock