HDFS-5642: re-copy htable.c and htable.h from HADOOP-10388 branch for consistency.