Asymptotic consistency for nonconvex risk-averse stochastic optimization with infinite-dimensional decision spaces