tm: reset local lock reply status after functions that do unlock

(cherry picked from commit 5943a8005baf8ce1239d2cf728373cb26975483a)