Avoid changing UID/GID if they are already correct.