lg_search() and lg_search_resolve() now return the least offset where
there could still be a hit. 2^64-1 is (still) reserved for indicating
that an exception was thrown internally.