unpack-trees: do not muck with attributes when we are not checking out