An Obata singular theorem for stratified spaces