SERVER-12274 refactor validation out of waiting for write concern