content size checks are not valid for LOCK

backport of https://github.com/owncloud/core/pull/11041