Revert "Fix a memory leak in RerferenceCache"
Merge pull request #2692 from neo4j/revert-2686-fix-leak-ref-cache

Revert "Fix a memory leak in RerferenceCache"