Sync file system before crash

In Crashdump test, perform sync file system before it crash the host.