mds: reset heartbeat in each MDSContext complete()
Before we switching the mds_lock to a fair mutex, the Finisher could
always successfully acquire the mds_lock if there has a number of
contextes finished. So it may take a long time to finish and will
delay kicking the heartbeat.
While even we have fix the mds_lock issue, it may still will happen
in case the complete() itself will take a long time to finish or
there has a number of contextes keep comming, which could make the
Finisher thread keep running.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
9f7110501fd5989aecd575815c87c071fee76b93)