A Rockland-based credit union is set to join forces with a North Shore lender, continuing the trend of consolidation in Massachusetts banking.