MatrixMultiplicationMapper - setup shared memory only in first thread