Backport of https://github.com/owncloud/core/pull/5193/

write the part file to the users root folder if the updated file is located in /Shared because we can't create new files in Shared/
Merge pull request #5208 from owncloud/fix_5126_stable5

[stable5] fix upload to /Shared