ReplicatedPG: add intrusive_ptr hooks

This is a hack to allow incomplete declarations
of ReplicatedPG to be used with intrusive_ptr.

Signed-off-by: Samuel Just <sam.just@inktank.com>
more debugging