fix: sync before notifyAll