Your example has nothing to do with argument passing; it is about scope (see the link).
FWIW, I think that the whole call-by-X discussion is just confusing as the Xs are not clearly defined — if anything, Julia is call-by-value. But, again, this is a red herring here.