This is not useful at all. I have tried 18:54h of continuous flight time and never had my device lock itself.
If you ever see your screen black during flight. It means your app has crashed and your device has locked itself. Please avoid posting incorrect information.
And btw, Auto-Lock is available on Android as well.