Notwithstanding the provisions of any other law, any contract, agreement or understanding whereby the right to file or enforce any lien created under article two is waived, shall be void as against public policy and wholly unenforceable. This section shall not preclude a requirement for a written waiver of the right to file a mechanic's lien executed and delivered by a contractor, subcontractor, material supplier or laborer simultaneously with or after payment for the labor performed or the materials furnished has been made to such contractor, subcontractor, material man or laborer nor shall this section be applicable to a written agreement to subordinate, release or satisfy all or part of such a lien made after a notice of lien has been filed.
N.Y. Lien Law § 34