The Queensland government has changed its stance on locking up child offenders.