Try to lchown and lstat on os.path.exists() = False
Merge pull request #6855 from philipforget/fix-uid-gid-chown-for-broken-symlinks

Functions get_gid, get_uid and chown in modules/file.py do not work for broken symlinks