(a) The provisions of this section and §§ 9-508 through 9-514 of this subtitle do not apply to:
(1) the Baltimore City Detention Center;
(2) the Mayor and City Council of Baltimore; or
(3) the public roads of Baltimore City.
(b) Each male inmate of a State or local correctional facility may be required to work on public roads in accordance with §§ 9-508 through 9-514 of this subtitle.