To overcome Brexit impasse, May open to extending transition