Slang from the 19th Century.
Like “dead duck,” or a “gone goose.”
Means that someone is in a hopeless situation.
Regards,