Make priavcy checking aware that a `use` directive can point to two defintions (namespaces) with different privacy. Closes #4110