Well, with Tasker you can turn the screen of with the "block system" action.
Also, you can re-enable automatically your pattern lock with tasker. All you have to do is, when the conditions are met, use secure settings to enable the pattern lock, and then use again Secure Settings with "CPU...