Fix clang-tidy performance warnings in SockDiag.

* Use const reference type for parameters to avoid unnecessary copy.

Bug: 30407689
Change-Id: I77d26f64b86aa03cf877b2d4475bbe1348400316
Test: build with WITH_TIDY=1
diff --git a/server/SockDiag.cpp b/server/SockDiag.cpp
index b9f69cd..cd96a26 100644
--- a/server/SockDiag.cpp
+++ b/server/SockDiag.cpp
@@ -176,7 +176,7 @@
     return checkError(mSock);
 }
 
-int SockDiag::readDiagMsg(uint8_t proto, SockDiag::DumpCallback callback) {
+int SockDiag::readDiagMsg(uint8_t proto, const SockDiag::DumpCallback& callback) {
     char buf[kBufferSize];
 
     ssize_t bytesread;