Refactor: tools: don't overwrite original attr_id when updating attributes
Previously, cli_resource_update_attribute() would remember the original attr_id
as common_attr_id, then reset attrd_id for each recursively updated resource.
Instead, keep the original attr_id throughout, and use a new rsc_attr_id
variable that can change per resource, to make the logic easier to follow.