A prison watchdog has criticised prison bosses after an ageing inmate was kept in handcuffs despite being unconscious and just hours from death.