That can't happen, we set the key in addLockedKey before we set isLocked to true. Before addLockedKey is called, isLocked is false.