Add more generic approach for letting resources get a second update
In certain cases we have resources that depends on other resources and
since, depending initialization order, a resource being depended on
may not have been realized yet, the first resource might end-up in a
non-working state. To avoid this we have, for classes that needed it,
a second update phase, after all resources have been realized. Adding
resources to this second update phase has been quite a manual process,
but with this change this is now formalized so it's reusable for other
classes that needs it too.
Pick-to: 6.11
Change-Id: I0b516ab4e2c0a1c89f5930d169fad5d2847ab45c
Reviewed-by: Andy Nichols <andy.nichols@qt.io>