Do not expire chunks while checking for their existence

The expiration should be done by the gc() function on login, not while
isComplete() is calling hasKey() for every chunk.

Backport of ab56f694160f58f075069560953cba86cdfe5aec from master