A 56-year-old man was stripped naked, handcuffed and made to wear a spit hood after suffering a seizure inside prison, a coronial inquest into his death has heard.