net: phy: Correctly process PHY_HALTED in phy_stop_machine()