How can you sell yourself into slavery? Slavery is forced. if you volunteered you’re not a slave.
In Gilbert and Sullivan's Pirates of Penzance, Frederick is indentured to a band of pirates until his 21st birthday.
That particular wording coming back around to bite him when it's pointed out that he was born on February 29th in a leap year...