Perfect theory except for one little detail - Indonesia didn't allow dual citizenship and the US does not permit a loose of citizenship for a minor child thingie.
Technically, under that situation, the U.S. would be unable to protect the citizenship of such a child. That’s why they have the Hague Convetion for adoptions, but unfortunately Indonesia historically has not signed on.