Written behind bars, this 1850s memoir links prisons to plantations