Proceedings under section 27-65-105, 27-65-106, or 27-65-107 shall not be initiated or carried out involving a person charged with a criminal offense unless or until the criminal offense has been tried or dismissed; except that the judge of the court wherein the criminal action is pending may request the district or probate court to authorize and permit such proceedings.