net/thunderx: fix build with gcc optimization on