External refrigeration with work-producing gas expansion loop