PIM-3461: Mark attribute à read only when updated by variant

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | Y
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | ?
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | N
| Fixed tickets        | PIM-3461
| DB schema updated?   | N
| Migration script?    | N
| Doc PR               |
always inject the ReferenceFactory object, please change for other cases too