Even if he was finally found competent to stand trial and found guilty, he probably would have been released immediately due to time already served.
Holding the guy indefinitely while looking for a competency ruling could be a violation of his rights.