Labour must be ready to support an alternative caretaker prime minister if MPs refuse to put Jeremy Corbyn in No10 to stop a no-deal Brexit, one of his frontbenchers has said.