phylib: fix premature freeing of struct mii_bus