Ultra-high-energy cosmic rays from young neutron star winds