Revert "sync: fix timeout = 0 wait behavior"

This reverts commit 5d2e61ddff51025d57c27b3988a229bad2e5f6eb.