Charity to benefit if building society goes private