Fix bug 9686: Slowdown after heavy usage

Fix for http://bugs.otrs.org/show_bug.cgi?id=9686

You won't believe how much nerve it took to track this one down.