ralloc: Implement a new ralloc_adopt() API.