Optimize compilation of sufficiently instantiated calls to the `set_logtalk_flag/2` built-in predicate