Move fsync() removed by #556 to spec installation

This assumes writes by the filesystem will be ordered which may not be a
safe, but does ensure at least the spec is written to disk before
returning from installation.