結果 : how to lock a thread in python