seafile_set_cs_serial_no: don't unref, it causes crashes
return with error when repo head is missing. Handle it externally with retry loop.Final seafile_set_cs_serial_no cleanups