fix rename of shared files
check if the old owner and the old path is available
Merge pull request #6517 from owncloud/fix_6510

[encryption] fix rename of shared files