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

This reverts commit 92415c4f4ff56a6c8beb578e536f8ea65cd97f61.