Bugfix: Fix response code when upload a file over locked

We fixed a bug where the response code was incorrect when uploading a file over a locked file.

https://github.com/owncloud/ocis/pull/9894
https://github.com/owncloud/ocis/issues/7638
