DummyFileLock.
is_locked
True, if the object holds the file lock.
Changed in version 2.0.0: This was previously a method and is now a property.