Their roles have decidedly reversed. For years, domestic funds have provided the backstop against exiting foreigners, lifting the share of local stock ownership to a record and preventing a rout of Indian risk assets.