pw: Apply ref-struct pattern to pipewire core
Applies the usual ref-struct pattern to pw_core by splitting it into a Core
and a CoreRef
, so that non-owned cores can be managed through the bindings.
The CoreInner
struct is now private, since it is an implementation detail.