modified get_evict to be simpler and moved around locks