Fix semaphore leak in nss_pcache
On shutdown Apache was sending a SIGTERM which caused the helper
to be killed rather than shutting down gracefully, resulting in
a leak of the semaphone lock in nss_pcache.
Catch that signal and shut down gracefully instead.
Resolves: #1364560