Update the `lgtunit` tool to avoid the problematic `at_end_of_stream/1` predicate whose semantics depend on the backend Prolog compiler