Plug memory leak in cache

The pruner job wasn't correctly marking entries as floating. Not sure how I
missed this one; I should really think of a way to add tests to this
project.