British PM may consider extending transition period after Brexit to break deadlock over Irish border, say officials.