Reduce the stack usage of dsl_dataset_remove_clones_key

This fixes issue #1726