Improve efficiency of ResolveRecorder
Improve efficiency of ResolveRecorder

Removing an element from a set with iterator is constant time, and
std::set specifies that other operations on the set do not invalidate
existing iterators.

qpdf/qpdf,jberkenbilt/qpdf,jberkenbilt/qpdf,qpdf/qpdf,jberkenbilt/qpdf,jberkenbilt/qpdf,qpdf/qpdf,qpdf/qpdf,jberkenbilt/qpdf,qpdf/qpdf