Add support for calling Prolog built-in meta-predicates that take closures as meta-arguments