Update to latest menhir

Menhir now exposes LHS in Query.production_definition.
This is used to prevent entering loop when reducing left-recursive
non-terminal.