A woman in Connecticut has appeared in court charged with holding her stepson captive for more than two decades and starving him.