timeout lock and pin prompt for memory management