ldb: Save a copy of the index result before calling the callbacks.