refs #910, add a wgtid option to getLastError so we can pass in a custom GTID