Deregulation has allowed lenders to operate across state lines, making it easier for banks to merge when they’re in trouble.