[BUGFIX] Session garbage collection is non-functional
Fixes an issue with the newly introduced session handling which resulted
in a big amount of orphaned cache entries due to a non-functional
garbage collection. In combination with a non-optimized implementation
of the garbage collector, this resulted in very long request times if
thousands of entries existed.
Releases: master, 2.0