A troubled 12-year-old girl's treatment before she was charged over a deadly Melbourne stabbing has been slammed by Victoria's children commissioner.