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

(cherry picked from commit cd2469d3)
68 jobs for !2692 with 1419-threadsanitizer-data-race-rbtdb-c-7568-in-issecure-v9_14 in 23 minutes and 45 seconds (queued for 8 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #448645
amd64 linux
🐞:sid:amd64

00:00:46

passed #448643
amd64 linux
autoreconf:sid:amd64

00:00:34

passed #448644
amd64 linux
misc:sid:amd64

00:00:17

 
  Build
passed #448658
amd64 linux
asan:sid:amd64

00:01:36

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

00:01:18

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

00:01:06

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

00:04:22

passed #448659
amd64 linux
clang:stretch:amd64

00:03:04

passed #448660
i386 linux
clang:stretch:i386

00:01:40

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

00:02:31

passed #448657
amd64 linux
gcc:bionic:amd64

00:01:39

passed #448652
amd64 linux
gcc:buster:amd64

00:02:35

passed #448647
amd64 linux
gcc:centos6:amd64

00:01:57

passed #448648
amd64 linux
gcc:centos7:amd64

00:02:25

passed #448649
amd64 linux
gcc:centos8:amd64

00:02:34

passed #448655
amd64 linux
gcc:fedora30:amd64

00:02:48

passed #448650
amd64 linux
gcc:jessie:amd64

00:01:16

passed #448653
amd64 linux
gcc:sid:amd64

00:01:57

passed #448654
i386 linux
gcc:sid:i386

00:01:18

passed #448651
amd64 linux
gcc:stretch:amd64

00:01:38

passed #448656
amd64 linux
gcc:xenial:amd64

00:01:23

passed #448666
amd64 windows
msvc:windows:amd64

00:02:22

passed #448665
amd64 linux
nolibtool:sid:amd64

00:02:11

passed #448661
amd64 linux
pkcs11:sid:amd64

00:01:02

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

00:00:51

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

00:00:21

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

00:00:21

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

00:00:42

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

00:00:50

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

00:00:43

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

00:00:43

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

00:00:44

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

00:00:45

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

00:00:45

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

00:00:49

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

00:00:29

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

00:00:43

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

00:00:43

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

00:00:29

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

00:00:44

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

00:00:57

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

00:00:43

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

00:07:34

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

00:06:13

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

00:06:24

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

00:06:34

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

00:06:37

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

00:06:36

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

00:06:34

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

00:06:30

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

00:06:27

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

00:06:27

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

00:06:31

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

00:06:44

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

00:08:07

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

00:06:30

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

00:06:35

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

00:06:42

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

00:08:00

failed #448697
amd64 linux
system:asan:sid:amd64

00:08:13

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

00:06:45

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

00:06:49

failed #448708
linux amd64
system:gcc:fedora30:amd64

00:06:46

failed #448694
amd64 linux
system:gcc:fedora30:amd64

00:06:46

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

00:07:42

 
  Docs
passed #448702
amd64 linux
docs:sid:amd64

00:00:58

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

00:02:20

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

00:10:45