[flang][OpenMP] Privatize indirectly referenced symbols (#187097)
Symbols that may be referenced indirectly by lastprivate or linear
DSAs in nested constructs must not have their privatization skipped
in the enclosing context. This avoids updates to the wrong symbols.
This is needed to unblock PRs that fix #170784.
Fixes #179345