file(INSTALL): Fix file ownership regression when running as root on macOS

Backport KWSys commit `51272e80e` (SystemTools: Avoid macOS copyfile
semantic differences as root, 2023-03-07).

Fixes: #24577
1 file changed