unpack-trees: pass checkout state explicitly to check_updates()