Use std::unique_ptr for CZMQNotifierFactory.
Summary:
Instead of returning a raw pointer from CZMQNotifierFactory and
implicitly requiring the caller to know that it has to take ownership,
return a std::unique_ptr to make this explicit.
This also changes the typedef for CZMQNotifierFactory to use the new
C++11 using syntax, which makes it (a little) less cryptic.
This is a backport of core#13686 [3/5]
https://github.com/bitcoin/bitcoin/pull/13686/commits/7f2ad1b9acef4ccc1b3e1a9f551416235d95cbfd
Depends on D10283
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D10284