The mass of each stays the same before and after the binding.
Actually not. The best example for this is nuclear fusion. There is a measurable mass difference between the rest mass of a nucleus and the total rest mass of the protons and neutrons.
If I understand well, your question is about the equivalence of energy and mass.
I know it's a bit confusing, but in bound and free systems, the total mass is different. With gravity it's more complicated, as in classical physics the source of gravity is the mass its self. But also in the merging of two black holes there is a mass difference, what is radiated away with gravitational waves (mostly). (I'm not sure if they can measure the mass difference directly, though.) Although in most (types of) processes the mass difference is usually negligable/unmeasurable.
These articles explainsexplain this whole stuff in more details: