$collection_lock_length->duration can be not set if the lock length isn't in the db.