fix testing errors

- the checkprivate function in the dnssec test set ret=0, erasing
  results from previous tests and making the test appear to have passed
  when it shouldn't have
- checkprivate needed a delay loop to ensure there was time for all
  private signing records to be updated before the test

(cherry picked from commit 82e83d5d)
40 jobs for !1333 with each-fix-dnssec-test-error-v9_12 in 9 minutes and 45 seconds (queued for 5 seconds)
detached
Status Job ID Name Coverage
  Precheck
passed 🐞:sid:amd64:precheck #148572
amd64 docker linux

00:00:35

passed sid:amd64:precheck #148571
amd64 docker linux

00:00:17

 
  Build
passed asan:sid:amd64:build #148579
amd64 docker linux

00:01:48

passed bionic:amd64:build #148585
amd64 docker linux

00:02:16

passed centos6:amd64:build #148573
amd64 docker linux

00:01:43

passed centos7:amd64:build #148574
amd64 docker linux

00:02:23

passed clang:stretch:amd64:build #148575
amd64 docker linux

00:01:41

passed clang:stretch:i386:build #148580
i386 docker linux

00:01:15

passed jessie:amd64:build #148576
amd64 docker linux

00:01:04

passed noassert:sid:amd64:build #148583
amd64 docker linux

00:01:20

passed pkcs11:sid:amd64:build #148582
amd64 docker linux

00:01:18

passed sid:amd64:build #148578
amd64 docker linux

00:02:10

passed sid:i386:build #148581
i386 docker linux

00:01:49

passed stretch:amd64:build #148577
amd64 docker linux

00:02:23

passed xenial:amd64:build #148584
amd64 docker linux

00:01:32

 
  Test
passed docs:sid:amd64 #148586
amd64 docker linux

00:00:55

passed install:sid:amd64 #148602
amd64 docker linux

00:02:06

passed noassert:system:sid:amd64 #148606
amd64 docker linux

00:06:20

passed noassert:unit:sid:amd64 #148605
amd64 docker linux

00:00:46

passed pkcs11:system:sid:amd64 #148604
amd64 docker linux

00:06:28

passed pkcs11:unit:sid:amd64 #148603
amd64 docker linux

00:00:50

passed system:asan:sid:amd64 #148600
amd64 docker linux

00:06:40

passed system:bionic:amd64 #148610
amd64 docker linux

00:05:53

passed system:centos6:amd64 #148595
amd64 docker linux

00:06:09

passed system:centos7:amd64 #148596
linux amd64 docker

00:05:56

passed system:jessie:amd64 #148597
amd64 docker linux

00:06:15

passed system:sid:amd64 #148599
amd64 docker linux

00:06:18

passed system:sid:i386 #148601
i386 docker linux

00:06:30

passed system:stretch:amd64 #148598
amd64 docker linux

00:06:04

passed system:xenial:amd64 #148608
amd64 docker linux

00:06:06

passed unit:asan:sid:amd64 #148592
amd64 docker linux

00:01:04

passed unit:bionic:amd64 #148609
amd64 docker linux

00:00:50

passed unit:centos6:amd64 #148587
amd64 docker linux

00:00:48

passed unit:centos7:amd64 #148588
amd64 docker linux

00:00:53

passed unit:clang:stretch:amd64 #148593
amd64 docker linux

00:00:52

passed unit:jessie:amd64 #148589
amd64 docker linux

00:00:31

passed unit:sid:amd64 #148591
amd64 docker linux

00:00:47

passed unit:sid:i386 #148594
i386 docker linux

00:00:52

passed unit:stretch:amd64 #148590
amd64 docker linux

00:00:53

passed unit:xenial:amd64 #148607
amd64 docker linux

00:00:50