The lock didn't really protect anything but since it was not explicitly initialized, it caused a hang.