Wake up all threads waiting on a condition variable.
Try to evict if the cache is nearly full and we are at the API boundary.