phy: phy-core: increment refcounting variables only on 'success'