ITS#9498 replace asserts

Just no-op if trying to close a connection that's already being closed.
3 jobs for master in 4 minutes and 50 seconds (queued for 25 seconds)
Status Name Job ID Coverage
  Build
failed build-gnutls-mit-standalone-lloadd #5672

00:03:15

failed build-no-threads-no-slapd #5670

00:01:35

failed build-openssl-heimdal-lloadd #5671

00:03:23

 
Name Stage Failure
failed
build-gnutls-mit-standalone-lloadd Build
make[1]: Leaving directory '/builds/openldap/openldap/libraries'
make[1]: *** [Makefile:308: all-common] Error 1
make: *** [Makefile:316: all-common] Error 1
Uploading artifacts for failed job
Uploading artifacts...
WARNING: tests/testrun/: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
build-openssl-heimdal-lloadd Build
make[1]: *** [Makefile:308: all-common] Error 1
make[1]: Leaving directory '/builds/openldap/openldap/libraries'
make: *** [Makefile:316: all-common] Error 1
Uploading artifacts for failed job
Uploading artifacts...
WARNING: tests/testrun/: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
build-no-threads-no-slapd Build
  struct sockaddr_un sa_un_addr;
^~~~~~~~~~
make[2]: *** [<builtin>: sasl.o] Error 1
make[2]: Leaving directory '/builds/openldap/openldap/libraries/liblutil'
make[1]: *** [Makefile:308: all-common] Error 1
make: *** [Makefile:316: all-common] Error 1
make[1]: Leaving directory '/builds/openldap/openldap/libraries'
Cleaning up file based variables
ERROR: Job failed: exit code 1