Get whether the collection is locked or not.
Use [method@Service.lock] or [method@Service.unlock] to lock or unlock the collection.
a collection
whether the collection is locked or not