fix regression if first operand of inlist is a function

The server filter was incorrectly being removed for queries such as:
SELECT ... FROM ... WHERE regexp_substr(inst, '[^-]+') IN ('inst1', 'inst2')

The fix is to apply the new inlist optimization less aggressively.