sync: don't block the flusher thread waiting on IO
Revision 506

Signed-off-by: amperific <amperific@gmail.com>