[sema] Refactor ActorReferenceResult::forReference to use builder pattern
Introduces a private Builder struct to encapsulate the parameters of
ActorReferenceResult::forReference. This reduces parameter passing
overhead and improves code readability by grouping related state.
This is part of a larger refactoring I am doing to improve the clarity and
remove the redundency of this method. To make it easier to review, I am
splitting it up into smaller commits that use mechanical changes.