Fix solution to the locks problem.