mesa: fix ARRAY_SIZE query for GetProgramResourceiv