Kondo-lattice screening in a d-wave superconductor