Influence of electron cooling on the polarization lifetime of a horizontally polarized storage ring beam