Revert "Fix a memory leak in RerferenceCache"

Reverts neo4j/neo4j#2686

The fix will be committed in 1.9-maint and merged up from there.