Zip tying the lever won’t do anything except maybe prove the piston seal is worn.
If your lever won’t hold, buy a master cylinder rebuild kit ($20).
Remove the lever
Gently remove that piston dust cover–i used needle nose but try not to tear it. The new kit comes with a new cover.
Use snap ring pliers to remove the snap ring from the housing–you’ll probably curse blue smoke trying this. Then remove the piston.
The piston seal goes in one way–take careful note Of the position.
I've actually had good luck zip tying the lever back IF you are having trouble bleeding air out of the system. It won't help for anything else, and sometimes it doesn't even get all the air out of the system, but it's a cheap and easy "leave it till tomorrow" trick to try if you're having trouble bleeding the system. I've done it a couple of times and come back to a wheeler with a nice firm brake lever.