r/w of rbtdb->current_version requires that rbtdb->lock be held

(cherry picked from commit cd2469d3)
70 jobs for !2693 with 1419-threadsanitizer-data-race-rbtdb-c-7568-in-issecure-v9_11 in 31 minutes and 31 seconds (queued for 7 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #448356
amd64 linux
🐞:sid:amd64

00:01:14

passed #448354
amd64 linux
autoreconf:sid:amd64

00:00:35

passed #448355
amd64 linux
misc:sid:amd64

00:00:18

 
  Build
passed #448369
amd64 linux
asan:sid:amd64

00:02:26

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

00:01:38

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

00:01:24

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

00:04:48

passed #448370
amd64 linux
clang:stretch:amd64

00:01:32

passed #448371
i386 linux
clang:stretch:i386

00:01:37

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

00:02:48

passed #448368
amd64 linux
gcc:bionic:amd64

00:01:22

passed #448363
amd64 linux
gcc:buster:amd64

00:01:26

passed #448358
amd64 linux
gcc:centos6:amd64

00:02:09

passed #448359
amd64 linux
gcc:centos7:amd64

00:02:23

passed #448360
amd64 linux
gcc:centos8:amd64

00:02:36

passed #448366
amd64 linux
gcc:fedora30:amd64

00:02:31

passed #448361
amd64 linux
gcc:jessie:amd64

00:01:23

passed #448364
amd64 linux
gcc:sid:amd64

00:02:14

passed #448365
i386 linux
gcc:sid:i386

00:01:35

passed #448362
amd64 linux
gcc:stretch:amd64

00:01:27

passed #448367
amd64 linux
gcc:xenial:amd64

00:02:34

passed #448378
amd64 windows
msvc:windows:amd64

00:03:04

passed #448372
amd64 linux
nocrypto:sid:amd64

00:01:22

passed #448377
amd64 linux
nolibtool:sid:amd64

00:02:11

passed #448373
amd64 linux
pkcs11:sid:amd64

00:01:29

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

00:01:40

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

00:00:29

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

00:00:21

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

00:00:44

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

00:00:52

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

00:00:54

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

00:00:45

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

00:00:51

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

00:00:49

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

00:00:54

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

00:00:52

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

00:00:31

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

00:00:45

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

00:00:43

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

00:00:55

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

00:00:52

passed #448393
amd64 linux
unit:nocrypto:sid:amd64

00:00:56

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

00:01:22

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

00:00:56

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

00:06:50

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

00:04:50

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

00:04:53

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

00:05:25

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

00:05:08

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

00:05:12

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

00:05:25

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

00:05:15

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

00:05:04

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

00:05:24

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

00:05:14

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

00:05:08

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

00:05:29

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

00:05:14

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

00:05:13

passed #448411
amd64 linux
system:nocrypto:sid:amd64

00:03:16

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

00:05:12

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

00:05:14

failed #448555
linux amd64
system:gcc:buster:amd64

00:05:23

failed #448404
amd64 linux
system:gcc:buster:amd64

00:05:45

failed #448553
linux amd64
system:gcc:centos8:amd64

00:05:27

failed #448401
amd64 linux
system:gcc:centos8:amd64

00:05:39

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

00:05:38

 
  Docs
passed #448416
amd64 linux
docs:sid:amd64

00:00:59

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

00:00:47

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

00:12:47