Conservative MP Ken Clarke has said he would not reject an offer to become caretaker prime minister if it was "the only way" to stop a no-deal Brexit.