Notice to any bank doing business in this state of an adverse claim to a deposit standing on its books to the credit of any person shall not be effectual to cause the bank to recognize such adverse claimant unless such adverse claimant shall also either procure a restraining order, injunction or other appropriate process against the bank from a court of competent jurisdiction in a cause therein instituted by him wherein the person to whose credit the deposit stands is made a party and served with summons, or shall execute to the bank, in form, and with sureties, acceptable to it a bond, indemnifying it from any and all liability, loss, damage, costs, and expenses for and on account of the payment of such adverse claim or the dishonor of the check or other order of the person to whose credit the deposit stands on the books of the bank.