Evolution and nucleosynthesis of extremely metal-poor and metal-free low- and intermediate-mass stars - II. s-process nucleosynthesis during the core He flash