SERVER-10942 use legacy error code for duplicate key