If you or anyone else are having issues, it's best to return to your merchant (Apple Store or whomever) for diagnosis and exchange,
I've an 8 Plus and auto-lock works as expected.
Devices are made by humans, so they will not always all be perfect, which is why warranties exist.