Clear search data when database is locked to prevent information leak.