Fix optimistic lock exception on soft delete

Avoid optimistic lock exception when soft-deleteable behaviour also enabled on entity
Without this patch impossible to "delete" entity (update deleted_at field) with enabled soft deleted doctrine behaviour and optimistic lock.