Merged revision(s) 1718069 from lucene/dev/trunk: LUCENE-6920: Improve custom function checks in expressions module to use MethodHandles and work without extra security privileges