change cache flush lock to small