Acquires resources after the node is inserted into a tree.
The runtime attempts this callback at most once for one node lifetime. A failure still counts as an attempted attach, so cleanup may call detach before dispose.