locked property
Whether the lock is currently held, i.e. a call to synchronized is currently running (or waiting for a nested synchronized call to finish, for a reentrant lock).
Implementation
@override
bool get locked => _locks.every((it) => it.locked);