Coronal origin of the polarization of the high-energy emission of Cygnus X-1