Section 509. Effect of Forfeiture of Leasehold.--The lien of every claim shall bind only the interest of the party named as owner of the property at the time of the contract or acquired subsequently by him, but no forfeiture or surrender of a leasehold or tenancy, whether before or after the filing of the claim, shall operate to prejudice its lien against the fixtures, machinery or other similar property.