add assert before write khash del flags
Merge pull request #2036 from ksss/assert-kh_del

add assert before write khash del flags