DerivationFrameworkEGamma: Avoid copying objects with unlocked decorations.
When we want to take egamma corrections into account, we need to make copies of the objects. To avoid copies with unlocked decorations, make sure to do all the copies before writing any decorations.
See ATLASRECTS-8008.