owncloud/apps — pull request #1943 by icewind1991 (2014-09-29 14:44:45+00:00)
Title: Save the locked handle in obtainWriteLock

Prevents the handle from going out of scope and the lock automatically being freed

cc @th3fallen @DeepDiver1975