Prevent lockup during unread search. (#517)