Add fsync to the turtle file and the to the directory when renaming it into place

This function carefully takes a `char *` rather than a `const char *` for that reason.  I agree it's a mess, but it's done this way because in most callers we have already called `__wt_filename` to create a temporary buffer with the full path of a file.