Fix resource names used for annotation of variable ops
Hi @tfeher This PR is in draft, any update on this? Please. Thank you! closing this in favor of #60076 
To facilitate conversion of variable ops (used in the experimental `disable_graph_freezing` mode) the converter annotates the graph with the shape of the variable ops. 

This PR fixes the mapping between captured input names and variables, so that the graph can be annotated correctly.