X-ray and optical polarization aligned with the radio jet ejecta in GX 339-4