bugfix: ngx_sleep is nil in bufferproducer