TDI-31036: LockWrite can not be resolved as a variable in parallel

iterations
https://jira.talendforge.org/browse/TDI-31036