mesa: implement TIMESTAMP query and glQueryCounter