[FE] Coverity move instead of copy fix (#33582)
### Details:
Fix Coverity defect type: Variable copied when it could be moved, for:
src/frontends/pytorch/src/op/loop.cpp
Coiverity issues id:
- 2536356
- 2536355
- 2536354
- 2536353
- 2536352
### Tickets:
- *ticket-id*