Simplify lit test configs for LSan and UBSan by using a generic config