Grafton Thomas ordered committed to a treatment facility for no more than four months to determine if he can reach 'the capacity to permit criminal proceedings' to go forward