Change mutex to implicit.
Avoid goroutine race issues in WaitForDone