The per-thread cut was `at - (start + at) % PIECE`. When the span does not
begin on a piece boundary the subtraction runs below the span's start and
wraps in a release build; the first thread then scanned nothing (or a huge
range), so differences in the first piece were never found and those bytes
were never copied back into title memory.
`scan_boundary` subtracts the offset into the piece from the span and
saturates at `from`; the test walks unaligned starts and asserts the cuts
stay ordered and on piece boundaries.
From kelvaroq native/patches/0009-shadow-compare.patch (GPL-3.0-or-later);
the same fix as fxceless/victory-fork 81d54b0 (fork pull request #1407).
(cherry picked from commit 30279c13dd81686d8a8cce7d329c10098fe043bd)