Lattice perturbation theory by computer algebra: A three-loop result for the topological susceptibility