Assessing the accuracy of Kohn-Sham conductances using the Friedel sum rule