mesa: add _mesa_is_no_error_enabled() helper