Section 13. If a sheriff neglects to make such payment for thirty days, the state treasurer shall recover of him in contract the amount of such fines, forfeitures and forfeited recognizances, with interest at the rate of twelve per cent from the time he is held to have received the same and costs.