Fix 'unreferenced local variable' warning in SharedArray.h