Pass the search stop channel down into the iterators

This prevents multiple threads from querying sqlite3 at the
same time, working around locking problems.