The critically branched state in a covalent synthetic system and in the reversible gelation of gelatin