Settings > Security & location > Screen lock
Notice: Tap the words 'Screen lock' for pin or pattern setup.
- The sprocket to the right has other screen lock options.
I don't understand the new logic in the Oreo Settings menu yet.
Instead I tend to use the search option (magnifying glass top/right) to find items that got shuffled around.