Payment by the commonwealth or by any political subdivision thereof to a client in full or in settlement of any claim, counterclaim, cause of action, judgment, execution, order or decree shall discharge the commonwealth or such political subdivision from all liability on account of any attorney's liens thereon or on the proceeds derived therefrom unless the state treasurer or the treasurer of such political subdivision, as the case may be, has received written notice from an attorney having a lien under section fifty that he claims such lien.
Mass. Gen. Laws ch. 221, § 50A