Backport the fix for bug 1945274 to 4.6.
All recent 4.6.z use ostree-2020.5 which is far newer than the version referenced in the linked bug.