Explicitly nulling mongocursor object on C++ side when calling reset to prevent Resource name error