Flipkart is set to become the most valuable startup to shift its headquarters back to India ahead of a planned IPO.