Technically, India remained as a Dominion until the constitution of the Republic was revealed in 1950. So even after the official independence in 1947, Nehru retained close ties with Britain and even retained Mountbatten as an advisor as well as a Governor-General (purely ceremonial by this stage). These ties might have been strengthened if India was attacked by the new communist regime in China within the first few years of independence. This could have led Nehru to abort his policy of non-alignment and and seek an open military alliance with Britain and the USA. Perhaps India might actually become a founding member of SEATO, thereby ensuring the organisation's long-term survival.
However, I really can't see the British ruling India directly any later than the early 50's, and even that scenario would require a much smaller scale WW2 or, preferably, no WW2 at all.