Next-to-eikonal corrections in the CGC: gluon production and spin asymmetries in pA collisions