tests: stress: fixed compiler warning
data-sort: propagate callback's error to the iterator caller

This fixes assertions that are result of failed iterator (mostly due to
badly broken data/index files).

Reported by: agodin@