tsan/msan: add halt_on_error flag
If halt_on_error==true, program terminates after reporting first error.