Topological susceptibility of SU(N) gauge theories at finite temperature