Only archive a time series when none of its chunks is pinned.

Change-Id: I7e4b67c34b417b8980173bc5dc3b213bd7d698e5