sparse-checkout: avoid using internal API of unpack-trees, take 2