Right-handed neutrino production at finite temperature: radiative corrections, soft and collinear divergences