Radiative electron attachment to rotating C$_3$N through dipole-bound states