If generating an image, run initialization and other optimizations.

The biggest reason for this CL is to ensure a boot image and a boot
image extension always have their conflict tables filled.

Test: test.py
Bug: 149894949
Change-Id: I7bada1b3697322ce78b4f352dec854651c0e995c
3 files changed