Fix logic error when reducing allocation in shared cache code.
Stop using global variables to track things in wtperf.
Be paranoid and ensure memory is initialized in wtperf.