You do not transfer copyright until you are paid in full. Partial payments do not count. If they have not paid, every system and backup of that system that has your piece of code in it must be taken down, by your own hands if necessary as stated in your work contract. Also make sure everything is tracked with git or something similar so you could even automate removing the parts you have written. If you build on someone else's work, that derivative work would be yours and you can remove it. Thats about the closest equivalent I can think of a software lien.