(2)a person who is charged with an offence, but who, by reason of unsoundness of mind, is incapable of making a defence, and who is in consequence, detained under Section 466 of the Code of Criminal Procedure pending the orders of the Local Government;