Lock on state update