fix global leak with _write_concern