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

This reverts commit fb217e6faf4e2c67f54d04cda13243f11fa4cc05.