Make sure that the generated OCI image has history entries
While the history in the image config is not required by the OCI
image spec, various tools have problems with an image without
history entries matching th layers. If no history is found, add one.
(Flatpak git already has been adapted to add a history entry.)