This lock is only used for state transitions.