Next cloud Server and Desktop some file not sync

Yes run: “delete from oc_file_locks where 1;”

You can read more about it here: File is locked - how to unlock