Replace atomic operations in bin/named/client.c with isc_refcount reference counting

(cherry picked from commit ef49780d)
44 jobs for !1879 with 999-tcp-client-crash-v9_11-locks-v9_12 in 17 minutes and 22 seconds (queued for 6 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #221839
amd64 linux
🐞:sid:amd64

00:00:40

passed #221880
amd64 linux
misc:sid:amd64

00:00:24

failed #221838
amd64 linux
misc:sid:amd64

00:01:07

 
  Build
passed #221850
amd64 linux
asan:sid:amd64

00:06:14

passed #221851
amd64 linux
clang:stretch:amd64

00:03:37

passed #221852
i386 linux
clang:stretch:i386

00:03:35

passed #221840
amd64 linux
docs:sid:amd64

00:01:00

passed #221849
amd64 linux
gcc:bionic:amd64

00:03:40

passed #221841
amd64 linux
gcc:centos6:amd64

00:02:52

passed #221842
amd64 linux
gcc:centos7:amd64

00:02:54

passed #221847
amd64 linux
gcc:fedora29:amd64

00:03:06

passed #221843
amd64 linux
gcc:jessie:amd64

00:01:58

passed #221845
amd64 linux
gcc:sid:amd64

00:03:28

passed #221846
i386 linux
gcc:sid:i386

00:04:18

passed #221844
amd64 linux
gcc:stretch:amd64

00:03:34

passed #221848
amd64 linux
gcc:xenial:amd64

00:01:46

passed #221854
amd64 linux
noassert:sid:amd64

00:02:29

passed #221853
amd64 linux
pkcs11:sid:amd64

00:02:52

 
  Test
passed #221873
amd64 linux
system:asan:sid:amd64

00:08:11

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

00:06:15

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

00:06:01

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

00:06:03

passed #221867
amd64 linux
system:gcc:fedora29:amd64

00:06:37

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

00:06:13

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

00:06:10

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

00:06:37

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

00:06:19

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

00:06:32

passed #221878
amd64 linux
system:noassert:sid:amd64

00:06:16

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

00:06:05

passed #221874
amd64 linux
unit:asan:sid:amd64

00:01:04

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

00:00:51

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

00:00:53

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

00:00:58

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

00:00:55

passed #221868
amd64 linux
unit:gcc:fedora29:amd64

00:00:47

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

00:00:36

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

00:00:46

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

00:00:57

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

00:00:47

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

00:00:46

passed #221879
amd64 linux
unit:noassert:sid:amd64

00:00:50

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

00:00:50

failed #221870
amd64 linux
unit:gcc:xenial:amd64

00:01:10