Fix initialization deadlock.