Fix lock issue that was preventing CodeComplete from showing up