errorLock property Null safety

Lock errorLock

Implementation

Lock get errorLock => _errorLock;