On the galaxy stellar mass function, the mass-metallicity relation and the implied baryonic mass function | Synapse