Added a hash function for Node.

Review: https://reviews.apache.org/r/28869
Fixed a long-standing performance issue in libprocess' SocketManager.

Review: https://reviews.apache.org/r/28838