Real quick ~ the US recognizes dual citizenship, and when it comes to minors with a claim to American citizenship, we simply ignore foreign laws ~ so if Indonesia thought Barry was their citizen, we don’t care!
Obama had no claim to US citizenship, which is why he was naturalized in ‘83.