flatpak: Fix a crash during app installation
The components_by_id
hash table borrowed component id-s from the libxmlb,
which works as long as the silo is not refreshed, when the old strings are
freed and new are created. Copy the id-s to avoid the crash.