Lepton-number violation and baryogenesis in a U(1)Y′ model