what do they do (with the body) if someone dies on a long haul flight and it's still many many hours to land
If you can improve the situation by landing, and not endanger others, you land.
Dead bodies aren't recoverable. Keep going where you were going, unless you've got other reasons not to.