caif: Move refcount from service layer to sock and dev.