[openacc][flang] Avoid attaching declare post-actions to acc.terminator (#188157)
Fix lowering so post declare-actions are not attached to acc.terminator
(step back from trailing fir.result/acc.terminator before attaching).
---------
Co-authored-by: Slava Zakharin <szakharin@nvidia.com>