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

This reverts commit 50bb8b92dc5b23605a0c154e41560f3c806735f7.