Dear maintainers,The patch is to fix several potential deadlocks that I found several months ago,and they are found by static analysis tool.Thanks much for your effort in reviewing!Regards,Chengfeng