ILBC: fix crash with optimization enabled

Mark loop variable as volatile to aviod excessive loop unrolling.