wal-fsyncer: close and reopen log for syncing.