The closest common examples I can think of are jurisdictions where prostitution is semi-legalized or legalized, jurisdictions where minors can work on behest of their guardian, and military service in remote areas.
All these imply some ability to bind one’s future self, or a dependent’s future self, into a situation of constrained freedom. And of an authority that recognizes and enforces such.
Historically, debtor’s prisons with penal labor effectively enabled that in most countries, and which is still the practice in some.
The clearest rationale for the existence of such a right is in any country with a formal security classification system. A person holding a security clearance becomes subject to certain limits on their future actions, beyond that of that of the regular citizenry, which they cannot unilaterally remove even after leaving the position that required it. This appears to be quite close to contracting oneself into an indefinite, limited, servitude.