In CalculateSequenceLocks no items are removed from prevHeights, they are just set to 0:
This PR updates the docs to reflect the actual implementation. Seems to have been wrongly documented since introduction in #7184 already (implementation and documentation)