Made kv_location_delete detach the blob subtree in all cases, not just when mod_info_out is not null.
Fixed blob detachment in one of the kv_location_set functions.