[Bug 8739] Better check for fsync on FreeBSD