Fix a singleton variable warning in the `swihooks.pl` integration file for SWI-Prolog