Nucleosynthesis limits on the mass of long lived tau and muon neutrinos