res_pjsip_pubsub: Prevent unload except during shutdown.