Your device may not be auto-locking because the 'Always on QR Scanning' feature is enabled, this keeps the iPad camera constantly active to scan any QR codes.
To disable this feature, follow the steps below:
On your dashboard, navigate to Configuration > Settings
Select the QR tab
Disable 'Always on QR Scanning'