Person B wasn't intended to be Ted Cruz. It was just a hypothetical example to make the point.
Then I would think that a strong argument could be made that the temporary nature of the work assignment would mean that he was still in complete allegiance to the United States and his child was, therefore, a NBC.