macOS: preserve the app signature after quitting

The packaged app leaves its signed bundle unchanged at shutdown and restricts loaded libraries to trusted locations. Implemented on the privacy branch; final package checks continue.