Core: expose max_determinized_states in regexp query, filter

This PR applies to 1.4.x, and it includes a Lucene snapshot upgrade (so we can't release 1.4.1 until Lucene also releases 4.10.3).

I just plumbed the max_determinized_states through to regexp query, filter and query_string, leaving the default at Lucene's default (10000 states).

Closes #8357