In some cases (e.g. NFS), a chown may technically be a no-op but still return `EPERM`, so only call `chown` when neccessary. This is particularly problematic for docker users bind-mounting an NFS share into a container. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: fa9709a3fc51785c3dc0f7ca8f54dafde2e291ab Component: engine