ISPN-4471 MapReduceTask: memory leak with useIntermediateSharedCache 

Master only. See https://issues.jboss.org/browse/ISPN-4471 for more details