[TSan] Move build rules a bit to ensure correct dependencies of check-tsan command