torture: Fix a torture crash with -O3