Revert "mm/ksm.c: use new hashtable implementation"

This reverts commit 9b492f7a4df99f3941985ac332b3b2cf9245ce50.