immediately lock with pin when finishing main activity