Sync the metadata before swapping the turtle file into place.

This was always the intention, and it used to happen, but a change move the fsync outside the checkpoint/schema lock (336dc23) left out the fsync of the metadata.

refs #1383.