Dont save existing file handles in locks
Fix infinite loops when getting a read lock
Clean up lock objects of files that no longer exist
When renaming, pass over the locks to the new path
release all locks after tests
Merge pull request #1946 from owncloud/locking-dontkeep

Fix various locking issues