when acquiring the lock of a shared file or folder we need to resolve th...

...at Shared uri to it's physical location.

reshares have to be respected

fixes #5267

@karlitschek @danimo @dragotin @icewind1991 @jakobsack @Gomez 
$this->getUniqueID()