Added entries queue size limit.

Current implementation of async get entries doesn't wait for entries to be returned from the queue before fetching next batches. Because of that queue could grow to whole log size before returning which is bad.