Fix adb tsan issues
- 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.
- Use atomics for adb quota values
Edited by Ondřej Surý