(d)???Any savings bank or savings society doing business in this State may borrow money, and may secure the same by the assignment or pledge of any mortgage, mortgages, bonds, or other assets held by said savings bank or savings society, provided that the amount borrowed from all sources shall not at any time exceed in the aggregate 25 percent of the amount set aside for surplus and reserves.