reftable/stack: use stat info to avoid re-reading stack list