SERVER-10084 Fix build errors from logging caused by implicit construction of SockAddr.