mds: fix ProgressThread shutdown

Squash me!

Signed-off-by: John Spray <john.spray@redhat.com>