Fix crash at shutdown during an RPZ reload. [RT #46210]

(cherry picked from commit 7a2b0ac9)
14 jobs for rpz-shutdown-crash-v9_12 in 8 minutes and 47 seconds (queued for 10 seconds)
Status Job ID Name Coverage
  Precheck
passed precheck:debian:sid:amd64 #65039
amd64 docker linux

00:00:18

 
  Build
passed build:centos:centos6:amd64 #65040
amd64 docker linux

00:02:08

passed build:centos:centos7:amd64 #65041
amd64 docker linux

00:02:18

passed build:debian:sid:amd64 #65042
amd64 docker linux

00:01:32

passed build:debian:sid:i386 #65043
i386 docker linux

00:01:36

 
  Test
passed install:debian:sid:amd64 #65052
linux amd64 docker

00:02:51

passed systemtest:centos:centos6:amd64 #65048
amd64 docker linux

00:04:41

passed systemtest:centos:centos7:amd64 #65049
amd64 docker linux

00:04:41

passed systemtest:debian:sid:amd64 #65050
amd64 docker linux

00:04:45

passed systemtest:debian:sid:i386 #65051
i386 docker linux

00:04:54

passed unittest:centos:centos6:amd64 #65044
amd64 docker linux

00:00:50

passed unittest:centos:centos7:amd64 #65045
amd64 docker linux

00:00:45

passed unittest:debian:sid:amd64 #65046
amd64 docker linux

00:00:43

passed unittest:debian:sid:i386 #65047
i386 docker linux

00:00:43