LUCENE-5979: Use the cost API to decide on whether to use random-access to intersect queries and filters.