limit use of static variables in functions
Support recovery lock:

- requierd passkey of 6 chars
- any hardware key can be used, include power and back keys
- max of 3 trials allowed
- setup lock key from PhilZ Settings menu
- start up scripts are allowed
comply to stock CWM sources
6.47.3 / libtouch_gui 1.26