Store the reference to key in `acquired_resources` instead of the copy.