FaceOff 7 cydia tweak will turn off your screen on various stimuli.
When the screen is face down or face up, when the proximity sensor is covered, etc. FaceOff will apply various actions such as: turning off the screen / locking the device and enabling/disabling various toggles.
It contains many options, including Delay, various proximity sensor modifications, disabling on ac, disabling in call, enabling while locked / on lockscreen, “blacklisting” apps to disable in, and much much more. Options can be found in the Settings app.
FaceOff 7 also includes a Flipswitch toggle.