§ 500-m. Special provision relating to city of New York. Unless specifically provided by law to the contrary, within the city of New York or the counties constituting such city the term sheriff as set forth in this chapter shall be deemed to mean the commissioner of correction of such city.