allow to prived a private pointer when creating a new refcounted node

so that it can be provided back when the terminate_node callback is called