make-container-image/build-images.py: Add --base-images-only mode
Add --base-images-only flag to build-images.py. When enabled,
only base images will be built and their builds will be serialized.
This ensures that we have up-to-date cached base images ready for
subsequent build stages.
Bug: T402212