CORE-3963: also update permissions when files are being moved from one unshared directory to another