perfrevlogwrite: use progress helper on modern hg

Authored by martinvonz.