Reimplement progress bar fix
Reimplement progress bar fix

The hanging progress bar fix discussed in #166 and fixed in 01898376 was re-introduced in merge #181, commit a2fa90aa.
Here the fix is re-implemented, tweaked, and is also repeated so that it fixes both the update() function and operator++().

MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3