Add ebuf_takeover() to ebuf.[ch].