(a) Every sheriff elected or appointed in any of the counties of this State, before entering upon that sheriff's office, shall, with sufficient surety or sureties, become bound to the State, by a joint and several obligation to be, with the surety or sureties therein, approved by the Judge resident in the county, for which the sheriff had been elected, namely:
(b) If any sheriff neglects so to enter into such bond such sheriff shall, ipso facto, forfeit his or her office. The prothonotary shall forthwith certify such neglect to the Governor, who shall thereupon appoint another person, being an inhabitant of the same county, to fill the vacancy until the next general election and qualification of a successor. The Governor shall duly notify the prothonotary of every appointment of a sheriff to fill a vacancy.