fix(ark-broker): terminal query phase lost when a reordered non-terminal event raises the sequence watermark (#3209)