CSHARP-1074: Remove GetLastError from the legacy API.