update locks