Chronologically, the car was bought using a loan through a bank, then title is sent to the bank electronically. The car loan is completely paid for, but title was never mailed, my guess is because it was electronic. Afterwards, from the same bank I got a credit card and eventually built up debt that I could repay. I filed for bankruptcy, and as a result the bank withheld the car title. About 5 years later, I had to get the car fixed, but due to a slow down in work and unexpected medical expenses I couldn't pay for the repair.
After many years, and with the rapid depreciation in car values, no one might get a darn thing.
In the scope of things, the lender's lien takes precedence over the mechanic's lien.
Let's say you owe the bank $6,000.
You owe the mechanic $500.
Let's say the car is worth $5,000.
Car is sold at auction for $3,000.
The bank is still owed $6,000, but the mechanic is owed $500.
The bank might pay the mechanic $500 from the three grand they received.
Banks aren't prone to giving away money.
The bank might decide NOT to do so, then mechanic has a choice to make.
She can sue you, if she still wishes to pursue the matter.
In the end, based upon my little scenario, you still owe the bank $3,000, and the mechanic $500.
YMMV