We've been seeing this failure on green dragon when the system is under high load. Unfortunately this is outside of LLDB's control.
Why is this necessary? Is there an error case where error.GetCString is not a python string? If so we should probably factor this out in a function and do the if sys.version_info.major == 2: str.decode('utf-8', 'replace') trick instead because otherwise the retry won't kick in.