Fix logic bug introduce in backport of ccache_regain_all_now, sync with