checkout: Add g_prefix_error() around more failures

So we can debug what's going wrong more easily.
libostree: Fix compiler warning