kernel32: Store resources to be updated in a tree.