MemoryLock constructor Null safety

MemoryLock()