sync.c: fsync fix