sftpv3: use 'mode' instead of 'permissions' in a few more spots