Implement workaround to avoid a unit test of the `read_term/3` predicate hanging on a faulty backend Prolog compiler