I'm Jamaican. My mom (64) says that when she was growing up, it was standard practice to hammer nails into the soles of the dead, so their spirits couldn't "walk".
Apparently the locals wouldn't approach the body for some time afterwards, for fear it was 'walking'.