Facing bankruptcy, LEGO resists pressure to offshore manufacturing and instead reinvents its operations in its Danish hometown.