Avoid a needless locking in sp_search()