Proper check if we hold the lock in locking queue

There's a misprint - instead of checking if we're holding the lock, we just checking method like `bool(self.holds_lock)`.