On ultra-high energy cosmic ray acceleration at the termination shock of young pulsar winds