Test multi thread and lock