Boris Johnson has hinted at a major concession to the EU to rescue a Brexit deal by refusing to say that Northern Ireland would leave the customs union.