OFStateManager: optimize counter stats loop

This removes an allocate/free from every iteration. Involves reaching into the
wire buffer to avoid assertion failures.