A payment by the owner of a building or structure to a prime contractor or subcontractor, made before 90 days from the completion of the building, is not valid to defeat or discharge a lien created by AS 34.35.050 - 34.35.120 in favor of other claimants, unless the payment is distributed among the other claimants. If a payment is distributed in part only, then the payment is valid only to the extent it is distributed.