mesa: Port errors.c to util/list.h instead of simple_list.