Revert "sync: fix timeout = 0 wait behavior"

This reverts commit d9dd3c5493739dd79d6979c7f2e01d09e079a605.