Hook up the -internalize pass in opt to report-cuda-kernels

Now we correctly run the internalize pass on the module because we have access
to the list of externally visible kernels.