An intellectual property arms race is escalating on Wall Street, where financial services firms like Goldman Sachs and Citigroup are building up stockpiles of patents on processes like software-based pricing, trading and risk analysis systems and products like credit cards, exchange-traded funds and exotic derivatives. .