Diaro app allows to change Security code request period, so you will be prompted to enter your Security code only after a period of time after the app as closed.
1. Go to app Settings
2. Tap on Preferences
3. Tap on Request period (if disabled, Security code is not set)