Commit 68f1f15d add more mutex locks to fix a race condition It seems to be the solution to many problems.