Disable dynamic scopes for named macros (ROOT-6802).

(cherry picked from commit d6089a303afae451f339d00f7d183ff2677fe062)