Add hashCode method for ConsumerRecord.