Police were called to the Royal Lancaster Infirmary hospital to support prison officers who were guarding a man in his 30s.