lib/dns/adb.c: don't use more than 64 lock simultaneously when run under TSAN

 - TSAN can't handle more than 64 locks in one thread, lock ADB bucket-by-bucket
   in TSAN mode. This means that the dump won't be consistent but it's good
   enough for testing

 - Use proper order when unlocking adb->namelocks and adb->entrylocks when
   dumping ADB.
81 jobs for !2579 with 1368-threadsanitizer-can-t-handle-more-than-64-mutexes in 40 minutes and 7 seconds (queued for 7 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #417723
amd64 linux
🐞:sid:amd64

00:02:06

passed #417721
amd64 linux
autoreconf:sid:amd64

00:00:35

passed #417722
amd64 linux
misc:sid:amd64

00:00:23

 
  Build
passed #417736
amd64 linux
asan:sid:amd64

00:01:59

passed #417742
amd64 freebsd
clang:freebsd11.3:amd64

00:01:17

passed #417743
amd64 freebsd
clang:freebsd12.0:amd64

00:01:08

passed #417744
amd64 openbsd
clang:openbsd6.5:amd64

00:04:25

passed #417739
amd64 linux
clang:stretch:amd64

00:01:50

passed #417740
i386 linux
clang:stretch:i386

00:01:54

passed #417724
amd64 linux
gcc:alpine3.10:amd64

00:03:13

passed #417735
amd64 linux
gcc:bionic:amd64

00:01:47

passed #417730
amd64 linux
gcc:buster:amd64

00:01:18

passed #417725
amd64 linux
gcc:centos6:amd64

00:02:32

passed #417726
amd64 linux
gcc:centos7:amd64

00:02:03

passed #417727
amd64 linux
gcc:centos8:amd64

00:02:16

passed #417733
amd64 linux
gcc:fedora30:amd64

00:02:41

passed #417728
amd64 linux
gcc:jessie:amd64

00:02:15

passed #417731
amd64 linux
gcc:sid:amd64

00:04:17

passed #417732
i386 linux
gcc:sid:i386

00:02:04

passed #417729
amd64 linux
gcc:stretch:amd64

00:01:46

passed #417734
amd64 linux
gcc:xenial:amd64

00:01:53

passed #417746
amd64 windows
msvc:windows:amd64

00:02:56

passed #417738
amd64 linux
mutexatomics:sid:amd64

00:01:40

passed #417745
amd64 linux
nolibtool:sid:amd64

00:02:24

passed #417741
amd64 linux
pkcs11:sid:amd64

00:01:46

passed #417737
amd64 linux
rwlock:sid:amd64

00:01:41

 
  Unit
passed #417759
amd64 linux
unit:asan:sid:amd64

00:04:26

passed #417763
amd64 freebsd
unit:clang:freebsd11.3:amd64

00:00:31

passed #417808
freebsd amd64
unit:clang:freebsd12.0:amd64

00:00:53

passed #417761
amd64 linux
unit:clang:stretch:amd64

00:00:47

passed #417747
amd64 linux
unit:gcc:alpine3.10:amd64

00:02:37

passed #417758
amd64 linux
unit:gcc:bionic:amd64

00:00:55

passed #417753
amd64 linux
unit:gcc:buster:amd64

00:01:12

passed #417748
amd64 linux
unit:gcc:centos6:amd64

00:00:53

passed #417749
amd64 linux
unit:gcc:centos7:amd64

00:01:04

passed #417750
amd64 linux
unit:gcc:centos8:amd64

00:00:56

passed #417756
amd64 linux
unit:gcc:fedora30:amd64

00:01:27

passed #417751
amd64 linux
unit:gcc:jessie:amd64

00:00:30

passed #417754
amd64 linux
unit:gcc:sid:amd64

00:01:24

passed #417755
i386 linux
unit:gcc:sid:i386

00:01:53

passed #417752
amd64 linux
unit:gcc:stretch:amd64

00:00:54

passed #417757
amd64 linux
unit:gcc:xenial:amd64

00:01:02

passed #417765
amd64 linux
unit:nolibtool:sid:amd64

00:01:38

passed #417762
amd64 linux
unit:pkcs11:sid:amd64

00:01:28

passed #417760
amd64 linux
unit:rwlock:sid:amd64

00:01:22

failed #417764
amd64 freebsd
unit:clang:freebsd12.0:amd64

00:05:07

 
  System
passed #417778
amd64 linux
system:asan:sid:amd64

00:09:40

passed #417781
amd64 freebsd
system:clang:freebsd11.3:amd64

00:08:35

passed #417801
amd64 freebsd
system:clang:freebsd12.0:amd64

00:08:08

passed #417766
amd64 linux
system:gcc:alpine3.10:amd64

00:09:05

passed #417777
amd64 linux
system:gcc:bionic:amd64

00:08:46

passed #417772
amd64 linux
system:gcc:buster:amd64

00:08:53

passed #417767
amd64 linux
system:gcc:centos6:amd64

00:08:33

passed #417790
linux amd64
system:gcc:centos7:amd64

00:08:27

passed #417769
amd64 linux
system:gcc:centos8:amd64

00:07:51

passed #417775
amd64 linux
system:gcc:fedora30:amd64

00:08:02

passed #417787
linux amd64
system:gcc:jessie:amd64

00:07:03

passed #417796
linux amd64
system:gcc:sid:amd64

00:08:26

passed #417794
linux i386
system:gcc:sid:i386

00:09:00

passed #417802
amd64 linux
system:gcc:stretch:amd64

00:06:59

passed #417788
linux amd64
system:gcc:xenial:amd64

00:06:48

passed #417803
amd64 linux
system:nolibtool:sid:amd64

00:08:23

passed #417805
amd64 linux
system:pkcs11:sid:amd64

00:07:34

passed #417792
linux amd64
system:rwlock:sid:amd64

00:07:25

failed #417789
freebsd amd64
system:clang:freebsd12.0:amd64

00:08:11

failed #417782
amd64 freebsd
system:clang:freebsd12.0:amd64

00:08:42

failed #417768
amd64 linux
system:gcc:centos7:amd64

00:08:02

failed #417770
amd64 linux
system:gcc:jessie:amd64

00:07:42

failed #417773
amd64 linux
system:gcc:sid:amd64

00:09:14

failed #417774
i386 linux
system:gcc:sid:i386

00:09:32

failed #417791
linux amd64
system:gcc:stretch:amd64

00:07:47

failed #417771
amd64 linux
system:gcc:stretch:amd64

00:08:52

failed #417776
amd64 linux
system:gcc:xenial:amd64

00:08:04

failed #417795
linux amd64
system:nolibtool:sid:amd64

00:09:46

failed #417783
amd64 linux
system:nolibtool:sid:amd64

00:10:09

failed #417780
amd64 linux
system:pkcs11:sid:amd64

00:09:15

failed #417793
linux amd64
system:pkcs11:sid:amd64

00:20:30

failed #417779
amd64 linux
system:rwlock:sid:amd64

00:08:53

 
  Docs
passed #417784
amd64 linux
docs:sid:amd64

00:01:00

 
  Postcheck
passed #417786
amd64 linux
cppcheck:gcc:sid:amd64

00:02:46

passed #417785
amd64 linux
scan-build:buster:amd64

00:11:40