fixed UnboundedBuffer deadlock.