Revert "sync: don't block the flusher thread waiting on IO"

This reverts commit ed4b4d2926e4fb9124efd675885b7ff415b769e4.

Squash commit due to breaking WiFi and external SDCard