[lldb-dap][test] Add Python 3.8 compatibility for test suite (#173264)
Python 3.8 does not support subscriptable built-in types (dict[int],
list[str], etc.) without importing annotations from __future__.
This change adds `annotations` imports and handles missing API
functions.