A change of wording in state legislation will see Queensland go against the UN protocol on incarcerating child criminals.