The most recent tragedy in Nice shows the country is still failing to address the socio-economic issues underlying a homegrown terror threat, analysts say.