Just for example, even now I presume it would be possible for the government to lock someone up as a means of reversible birth control
I can think of no legal theory under which such a power exists. A few judges have tried variations of this and been overruled. There may be such a case but I can't see how it would fit into the 4th and 8th Amendments.