On the Hopf–Oleinik lemma for degenerate-elliptic equations at characteristic points