Add doc values support to _parent field

PR for #6107
Should this method be destructive and eg. set `set` to null to make sure that the builder cannot be reused? (in which case the immutable instance would be muted)