Add common abstract base class for SyncedMemory and OpenCLSyncedMemory