Extend the change from commit 5ad88623 (Source: Convince NVHPC that RAII variables are used, 2021-04-26, v3.21.0-rc1~254^2~1) to apply to LCC too.