Update dependencies and add a TSAN build

Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/1560
Change-Id: I8af8f33fad99f39f4835b2620abc601f1b312cd1
diff --git a/ci/build.sh b/ci/build.sh
index aea3316..5438b0a 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -33,6 +33,12 @@
     export LDFLAGS="-fsanitize=address ${LDFLAGS}"
 fi
 
+if [[ $ZUUL_JOB_NAME =~ .*-tsan ]]; then
+    export CFLAGS="-fsanitize=thread ${CFLAGS}"
+    export CXXFLAGS="-fsanitize=thread ${CXXFLAGS}"
+    export LDFLAGS="-fsanitize=thread ${LDFLAGS}"
+fi
+
 PREFIX=~/target
 mkdir ${PREFIX}
 BUILD_DIR=~/build