Fix typo in lock calls