John McDonnell has threatened to drag the Queen into a constitutional crisis by claiming Labour would “take over” if Boris Johnson refused to quit were he to lose a confidence vote.