[LLDB/test] lldbutil check_breakpoint() - check target instance

Check test.target instance type before we attempt to get the breakpoint.
This fix is suggested by 'clayborg'.
Ref: https://reviews.llvm.org/D111899#inline-1090156
GitOrigin-RevId: c52ff0cfcbf46b81d3df868a259d94910cd15c9a
diff --git a/packages/Python/lldbsuite/test/lldbutil.py b/packages/Python/lldbsuite/test/lldbutil.py
index c92626f..117c624 100644
--- a/packages/Python/lldbsuite/test/lldbutil.py
+++ b/packages/Python/lldbsuite/test/lldbutil.py
@@ -755,8 +755,13 @@
     expected_location_resolved - Extected resolved status for the location_id (True/False). Default - True.
     expected_location_hit_count - Expected hit count for the breakpoint at location_id. Must be set if the location_id parameter is set.
     """
-    
-    bkpt = test.target().FindBreakpointByID(bpno)
+
+    if isinstance(test.target, lldb.SBTarget):
+        target = test.target
+    else:
+        target = test.target()
+    bkpt = target.FindBreakpointByID(bpno)
+
     test.assertTrue(bkpt.IsValid(), "Breakpoint is not valid.")
 
     if expected_locations is not None: