Fix undefined variable access in mcstat_expect()