You, or anyone with authority, can lien the property whenever you like. No contract with the mortgage company could ever eliminate this possiblility. Of course, "first in time, first in line", so the bank wins anyway- but mechanics liens come in front of mortgages.
Just liening the property wont stop a tax sale; they get paid first anyway. This is what happens with an auction- either only the title is sold, leaving all other liens intact, or there is a judicial clearing of debts against the property, and we all stand in line per lien priority to get the proceeds. Tax liens have priority over all other liens, period.
But the money issue comes to play here- I want to pay the claim at law, by right: either declare a pay-off statement in gold or silver, or refuse my offer to pay in full, and dishonor (void) the debt. (but they might cry 'contract!')
By liening the front-end, with a mechanics lien, and the back-end, with a friendly foreclosable mortgage, the bank (
bank!)cant do anything with the house- unless they can void any of the liens (probably attack the validity of the mechanics lien).
But the mechanic's lien can only be voided by someone with standing ie- one of the parties thereto. So maybe the bank cant do anything about it...
If they foreclose on just the title, my friendly mortgage slides into first place (the bank trades it's interest for the title) and now
I foreclose on them.
If they foreclose judicially, on the whole thing, then my mechanics lien gets paid first- I could buy the property right back at auction for the priority of my "unlimited dollars/100% interest" lien. Plus poundage to the sheriff, a thousand or so bux.
The thing to do is to string it out as long as possible with various incomplete bankruptcies, rejecting service of process, denying the personal jurisdiction, obfustication

, social programs, refianceing, etc- it has to be a total approach in order to maximize your outcome.