Setting index/bulk thread pools with queue_size can cause replica shard failures

Setting index/bulk thread pools with queue_size can cause replica shard failures
closes #3526