[BZ-1044529] Memory leak (caused by kbase.getStatefulKnowledgeSessions())