Update the SWI-Prolog adapter file with a bit more efficient implementation of the internal compiler predicate for reading file terms