[libnotificationmanager] Fix memory leak
In an &operator= we already have an object. It will have the d-pointer already allocated.
If we create a new private implementation our old one leaks
(cherry picked from commit 079552b3)
(cherry picked from commit 1960f105)
Even though we don't do regular 5.18 releases anymore I think this is a no-brainer to backport.