linux: fsync on a directory should return 0, not EINVAL