[sanitizer] Move GetTlsSize code from TSan to sanitizer_common.