Revert "SERVER-13181: Fix Memory leaks in WriteOpResult - switch struct to class, and tighten ownership of pointers with explicit set methods"

This reverts commit eaa83e8afb6bd800cbab0de01b051f2e1460a432.