Section 42. If a railroad corporation owning a railroad in this commonwealth and consolidated with a corporation owning a railroad in another state increases its capital stock, or the capital stock of such consolidated corporation, except as authorized by this chapter or chapter one hundred and fifty-nine, without authority of the general court, or without such authority extends its line of railroad, or consolidates with any other corporation, or makes a stock dividend, the charter and franchise of such corporation shall be subject to forfeiture.