[TSan] Make lit-tests more self-contained