Your sources very accurately reflect the history that slavery was enforced by the legal system and peace officers upholding it. They don't lend any credence whatsoever to the notion that slave patrols morphed into modern police departments. The actual history is that police have slowly become more localized and detached from central authority (like the Kind or his officials - sheriffs, etc) over time as populations increase.