Made the other kv_location_set function detach the old value.
Made explicit comparison to NULL.
Removed known-false comment about auto_drainer_t in rdb_erase_range.