[UBSan] Add halt_on_error runtime flag