County prisoners may not be leased to work for any private interests. This section does not prohibit county inmates from working in nonprofit and private sector jobs pursuant to s. 951.24(2) and consistent with federal law.