Strong cosmic censorship in Horndeski theory