s3:registry: add helper function regdb_delete_sorted_subkeys()