(a) Except as provided in subsection (b) of this section, a banking institution is not required to recognize or take any action on any claim to a deposit or to money or property held by it or contained in a safe-deposit box, if that claim is adverse to the interests of any person who, on its records, appears to be entitled to the deposit, money, or property.
(b) If, in an action to which the adverse claimant is a party, a court order or decree involving a claim to the deposit, money, or property is served on the banking institution, the banking institution may or, if required by the court, shall impound the deposit, money, or property, subject to further order of the court, without any liability on its part to anyone for doing so.