Thousands of Indian soldiers who would otherwise leave the military after four years will be kept on duty, in a major rethink of the country’s controversial recruitment model as New Delhi grapples with persistent manpower shortages and security concerns along its borders with China and Pakistan, analysts say.