Pairing and polarization in electron-boson systems with retarded interactions via dynamical mean-field theory